• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

accessing Initial context for glassfish

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 128
MS IE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic