This content has been marked as final.
Show 2 replies
-
1. Re: disable connection pool
weston.price Nov 23, 2006 8:06 PM (in response to gedel)Can you tell me where you got the class
org.jboss.resource.adapter.jdbc.local.LocalTxDataSource
and what version of JBoss you are using. -
2. Re: disable connection pool
weston.price Nov 24, 2006 12:48 AM (in response to gedel)Ok, I see, this is an custom class used for POJO/EJB3 based deployments. This was never really meant to be used in this manner.
If you do not want the connection pooled you would need to use some other form for acquiring your connection. DriverManager.getConnection() would be the most appropriate. A simple wrapper for this functionality should be sufficient. Also, most JDBC vendors provide non-pooled DataSource implementations that you can use directly. You would just set this up as a bean and set the properties that you need.