Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing Initial context for glassfish

 
Rajasekhar Devi Reddy
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

 
Allen Bandela
Ranch Hand
Posts: 128
Eclipse IDE MS IE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic