• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI - Initial Context Parameters - outside EJB container  RSS feed

 
Anurag Gupta
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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
  •  
    Lasse Koskela
    author
    Sheriff
    Posts: 11962
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Have you searched the J2EE SDK forum at forum.java.sun.com? This thread, for example, looks promising.
     
    Husam Haddad
    Greenhorn
    Posts: 5
    • Mark post as helpful
    • send pies
    • 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:

     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!