Starting a Java Persistence project class=”org.jboss.resource.adapter.jdbc.local.LocalTxDataSource”>
java:/HelloWorldDS
org.hsqldb.jdbcDriver
jdbc:hsqldb:hsql://localhost
sa
0
10
1000
100000
Again, the XML header and schema declaration aren t important for this example. You set up two beans: The first is a factory that can produce the second type of bean. The LocalTxDataSource is effectively now your database connection pool, and all your connection pool settings are available on this factory. The factory binds a managed datasource under the JNDI name java:/HelloWorldDS. The second bean configuration declares how the registered object named HelloWorldDS should be instantiated, if another service looks it up in the JNDI registry. Your Hello World application asks for the datasource under this name, and the server calls getDatasource() on the LocalTxDataSource factory to obtain it.
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.
This entry was posted
on Saturday, October 27th, 2007 at 2:27 pm and is filed under PHP5.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.