Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessin a stateless session bean from a java client using WSAD  RSS feed

 
Devidas Menon Aniyath
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
I am new to EJB concepts. I hav a problem when accessing session bean from a java client. I am using WSAD 5


Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
properties.put(Context.PROVIDER_URL, "iiop://localhost:9081/");
InitialContext ctx=new InitialContext(properties);


raises an exception as

The property com.ibm.ws.naming.wsn.factory.initial is not set. The most likely cause is that the jar which contains the file com/ibm/websphere/naming/jndiprovider.properties cannot be found by the class loader.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!