Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can i put jndi.properties file inside an ear  RSS feed

 
kishore soodha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an ejb in a ear that does JNDI look up for a queue residing on remote appserver/jms server. My dumb question is can i put the jndi.properties file with factory and url specified jarred inside the ejb?
I can put properties file in classpath.But i would like to skip this option if can put jndi.properties file inside ear.

Thanks in Advance
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your app server implements the JNDI spec, so you must look up the JNDI tree in the server.
 
kishore soodha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me in understanding this. You meant to say that i can't lookup remote queue. and the only way is to lookup the queue in the same appserver's jndi tree. then how can i lookup the remote queue. should i bind queue in one app to the physical queue on other app ?? please correct me if i'm wrong.

I'm using weblogic 8.1 and i have two apps running on two different domains. one app need to write to the queue defind in other app. I read on weblogic's documentation that i can define foreign JMS queues.But i'm not sure this is right..
Can you please throw some light on how i can do this?


Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!