Container « DataSource « Java Database Q&A





1. How should unit tests set up data sources when not running in an application server?    stackoverflow.com

Thank you all for your help. A number of you posted (as I should have expected) answers indicating my whole approach was wrong, or that low-level code should never have to ...

2. Out of container JNDI data source    stackoverflow.com

I would like to configure a DataSource using JNDI in a Java SE app. What is the best way to do this? So far, I've come across 2 projects:

  1. Apache Naming. ...

3. How do I lookup a JNDI Datasource from outside a web container?    stackoverflow.com

I have the following environment set up:

  • Java 1.5
  • Sun Application Server 8.2
  • Oracle 10 XE
  • Struts 2
  • Hibernate
I'm interested to know how I can write code for a Java client (i.e. outside of a web ...

4. How to check a "connection" from datasource is in Container and part of Transaction    java-forums.org

Hi All, I am using Weblogic and tx datasource connection and also connection pool. In our application we are getting connection from datasource. I want to check the connection as soon as it comes from datasource that:- 1. If this connection is in Container? 2. If this is a part of a transaction? Please help asap.

5. How to check a "connection" from datasource is in Container and part of Transaction    java-forums.org

Hi All, I am using Weblogic and tx datasource connection and also connection pool. In our application we are getting connection from datasource. I want to check the connection as soon as it comes from datasource that:- 1. If this connection is in Container? 2. If this is a part of a transaction? Please help asap.