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

后端 未结 5 1169
半阙折子戏
半阙折子戏 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:04

    This might be a bit late for you but I have used the Simple-JNDI library for many years for the exact purpose you mention. I'm not sure if it has all the options you may need but it sufficed for my command line utilities.

提交回复
热议问题