• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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:

     
    Run away! Run away! Here, take this tiny ad with you:
    the value of filler advertising in 2021
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic