ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » can use jndi in non-web-based application?

Post new topic  Reply to topic
 can use jndi in non-web-based application? « View previous topic :: View next topic » 
Author Message
andy840920
PostPosted: Tue May 01, 2007 10:15 pm    Post subject: can use jndi in non-web-based application? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 02, 2007 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
andy840920
PostPosted: Wed May 02, 2007 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed May 02, 2007 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed May 02, 2007 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » can use jndi in non-web-based application?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.