wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI" Watch "JNDI" New topic
Author

JNDI

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?

Thanks,
Sandip
mano ranjan
Ranch Hand

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

thanks
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
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.

Sandip
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI