How do I lookup a JNDI Datasource from outside a web container?
- by masotime
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 application) that can reference the JNDI datasource provided by the application server.
The ports for the Sun Application Server are all at their…