Author |
Message
|
andy840920 |
Posted: Tue May 01, 2007 10:15 pm Post subject: can use jndi in non-web-based application? |
|
|
Apprentice
Joined: 29 Apr 2007 Posts: 44
|
my application is not web based, can i use WAS JNDI? that when the WAS server stoped my app is running still. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 02, 2007 3:04 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If the WAS server is stopped, you won't be able to look anything up from the JNDI.
That may or may not affect the function or running of your application.
The *easiest* way to use the WAS JNDI is to run your application inside the WAS Application Client environment. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
andy840920 |
Posted: Wed May 02, 2007 7:31 am Post subject: |
|
|
Apprentice
Joined: 29 Apr 2007 Posts: 44
|
jefflowrey wrote: |
If the WAS server is stopped, you won't be able to look anything up from the JNDI.
That may or may not affect the function or running of your application.
The *easiest* way to use the WAS JNDI is to run your application inside the WAS Application Client environment. |
if my application running in the WAS Application Server environment but not web project, how to config and use the WAS JNDI? my app used hibernate to operate database. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 02, 2007 7:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If your app is running in the App Server container- in the EJB container presumably - then you just access it normally as it's already in the initial context.
But then your app won't be running when the app server is down.
If you run your app in the Application server CLIENT container, then the JNDI will still be in the initial context. But the JNDI won't be available when the App Server is down. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed May 02, 2007 11:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Finally if you want to use your app outside of any Application server (J2EE) context as a standalone, use a file context as directed to by JMSAdmin...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|