• 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

access EJB remotely

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic