• 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

OK got my app to run, but now the I get a naming exception in my EJBFactory...

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK this code worked for both Weblogic and JBoss:
public static IService getEJBObject(String serviceName) throws ArcstreamException
{
log.debug("EJBFactory.getEJBObject() for service: " + serviceName);
InitialContext ic = null;

Method method;

try {
ic = new InitialContext();

Object home = ic.lookup("statelessSession." + serviceName);
}...
Now in Websphere 5.0, it's causing a SRVE0026E NamingException. Does anybody know what the syntax should be for this?
Thanks!
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the JNDI name set to? You can find this in the J2EE perspective by right clicking the EJB.
reply
    Bookmark Topic Watch Topic
  • New Topic