• Post Reply Bookmark Topic Watch Topic
  • New Topic

access EJB remotely  RSS feed

 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am new to ejb and i have created a bean and deployed into the web server (Web Logic)
It works within the Local system perfectly.
But when both the sub and tha client class is run in a different system it gives an exception NoClassDefFound error.
let me know if v need to specify the url as below.
String url = "t3://pmornd99:7001";
Hashtable env = new Hashtable();
env.put(
Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, url);

InitialContext ctx = new InitialContext(env);
HelloWorldHome helloHome =
(HelloWorldHome) ctx.lookup("SSP_DS_HelloWorld_Services");
hello = helloHome.create();

Thanks in advance
smitha
 
sathish sathish
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go thru the sample chapter(Class loaders and J2EE) in the following link.
http://www.theserverside.com/news/thread.jsp?thread_id=24092
I think it might help u solving the problem
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!