File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI" Watch "JNDI" New topic


Sandip Sarkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 55
Hi All,

Have installed
MyEclipse with all the required plug ins for J2EE.Am into writing a bare bones MDB . Now how do i configure my JNDi.Have searched through many mnauls but hardly anywhere are the steps documented. CAn anyone help me with this?

mano ranjan
Ranch Hand

Joined: Jul 12, 2007
Posts: 102
The JNDI must be configured in the application server or web server which you are using!!

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749

If you have a J2EE server running, than JNDI is all ready present, but I'm guessing you're asking how to configure JNDI for the MDB? That's a little complicated. Keep in mind, programs don't access MDBs directly, they simply can't. Programs send messages to Queues that MDBs "listen" to. Therefore, the only JNDI required to set up an MDB is the JNDI name of the queue. How this is setup, though, is pretty server specific so I'd recommend reviewing documentation for how to setup queues in general on your server. Any documentation for how to setup a queue will include documentation for how to setup JNDI name for that queue.

[OCA 8 Book] [Blog]
Sandip Sarkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 55
Thanks Scott.

You were right. I was asking the same which you answered.
I was looking it out for Jboss.Nez...let me try.

I agree. Here's the link:
subject: JNDI
It's not a secret anymore!