• 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

JNDI - Initial Context Parameters - outside EJB container

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Sun's Reference Implementation of J2EE with a Simple StatelessSession Bean (e.g. HelloBean) deployed in it.
I have a client which needs to invoke the business method exposed in this bean. However this client is OUTSIDE the Ejb Container, in a different JVM.
Generally if the client application client is also deployed within the EJB CONTAINER, the std code would be as follows :

But the Client NEEDS to be outside the EJB Container, hence would have the JNDI lookup Modifications as follows :

The PROBLEM is for SUN's Reference Implementation WHAT are the TWO Properties :
  • INITIAL_CONTEXT_FACTORY
  • PROVIDER_URL
  •  
    author
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Have you searched the J2EE SDK forum at forum.java.sun.com? This thread, for example, looks promising.
     
    Greenhorn
    Posts: 5
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    this is the snipped of code for how to look up EJB module in JBOSS 5, but the port 1099 is the JNDI port for JBOSS not the port for accessing the web context e.g. 8080:

     
    All of the following truths are shameless lies. But what about this tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic