• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access romote ejb

 
nesta fdb
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deployed ejb.jar in contain a and web.war in container b, but it can't not run well. The error is "can not find remote interface 'UserLogin' Class.
Thanks in advance.
part of jsp code:
Hashtable props = new Hashtable();
props.put(
InitialContext.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming rg.jnp.interfaces");
props.put(InitialContext.PROVIDER_URL, "202.113.67.27:1099");
InitialContext ctx = new InitialContext(props);
Object objref = ctx.lookup("UserLoginBean");
homeuserlogin = (UserLoginHome)
PortableRemoteObject.narrow(
objref, UserLoginHome.class);
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic