How do I lookup a JNDI Datasource from outside a web container?

后端 未结 5 1164
半阙折子戏
半阙折子戏 2020-12-23 10:47

I have the following environment set up:

  • Java 1.5
  • Sun Application Server 8.2
  • Oracle 10 XE
  • Struts 2
  • Hibernate

5条回答
  •  感情败类
    2020-12-23 11:05

    What you want is an Application Client

    Alternatively you could establish a plain JDBC connection from your standalone client which might be easier to create - but you'll have to configure the connection details in the client and can not reuse the settings from your application server.

提交回复
热议问题