Can we write standalone programs which use JNDI? I googled and it seems that JNDI can be used in conjunction with web-container i.e. to use JNDI, the JNDI support should come from a web-container?
Can we write a simple standalone program (with main() method) and uses JNDI to obtain the database connection? I searched a lot in google, however not sure if we can do this.
Any inputs highly appreciated.
Thanks