This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes accessing Initial context for glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "accessing Initial context for glassfish" Watch "accessing Initial context for glassfish" New topic
Author

accessing Initial context for glassfish

Rajasekhar Devi Reddy
Greenhorn

Joined: Dec 21, 2007
Posts: 29
Hi,

I am new to servers and server side programming. I have been trying to run a message driven bean using JBoss with out success for quite some time now. So I decided to try it on netbeans and Glassfish server that comes bundeled with it.

Now my question is. To write a client to access a MDB i need to access InitialContext to perform JNDI lookup.

in JBOSS I did it using this code



I am trying to find out what would be similar kind of properties entry for glassfish.

any sugestion would be of great help.

thank you
Rajasekhar Devi Reddy
Greenhorn

Joined: Dec 21, 2007
Posts: 29
Hi

I got it to work with this code.. Just posting it to help others if having the same problem.

Allen Bandela
Ranch Hand

Joined: Feb 16, 2006
Posts: 128

More info: Had to also include the following the jars in the classpath for it to work.
appserv-admin.jar - \lib
imqjmsra.jar - \lib\install\applications\jmsra
 
Consider Paul's rocket mass heater.
 
subject: accessing Initial context for glassfish
 
Similar Threads
How can my Applet get in touch with an EJB onJboss?
NoInitialContextException
Corba ORB exception while creating InitialContext
problem with ejb client in Jboss
Looking up an EJB