aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing Initial context for glassfish