Instead of specifying the configuration information in this manner, Dolly (and her co-workers) would be better served by using JNDI to find a JDBC DataSource, as shown in Listing 2.
如果不用这种方式指定配置信息,Dolly(以及她的同伴们)使用JNDI来查找JDBCDataSource会更好一些,如清单2所示。
To be able to acquire a JDBC connection, we first need to perform some minor deployment configuration so we can look up a JDBC DataSource in the local component's JNDI context.
为了能够得到JDBC连接,首先要执行一些小的部署配置,这样我们才可以在本地组件的JNDI下文中查找DataSource。
To be able to acquire a JDBC connection, we first need to perform some minor deployment configuration so we can look up a JDBC DataSource in the local component's JNDI context.
为了能够得到JDBC连接,首先要执行一些小的部署配置,这样我们才可以在本地组件的JNDI下文中查找DataSource。
应用推荐