dcsimg
how to call the ejb on jboss from websphere?how to configure?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   li_xiaotang
Posted On:   Wednesday, July 23, 2003 08:13 PM

I want to call the ejb on jboss from wsad. And i write the codes as: InitialContext ctx = null; java.util.Properties props= new java.util.Properties(); props.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:1099/"); props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); ctx = new InitialContext(props); Object homeObject = ctx.lookup("ejb/com/bank/RemoteTransferHome"); RemoteTransferHome piHome = (RemoteTransferHome)javax.rmi.PortableRemoteObject.narrow(homeObject, RemoteTransferHome.class); but the wrong message i get is : the RemoteTransferHome can not be resolved. and in the websphere's c   More>>

I want to call the ejb on jboss from wsad.
And i write the codes as:
InitialContext ctx = null;
java.util.Properties props= new java.util.Properties();
props.put(javax.naming.Context.PROVIDER_URL,"iiop://localhost:1099/");
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
ctx = new InitialContext(props);
Object homeObject = ctx.lookup("ejb/com/bank/RemoteTransferHome");
RemoteTransferHome piHome = (RemoteTransferHome)javax.rmi.PortableRemoteObject.narrow(homeObject, RemoteTransferHome.class);
but the wrong message i get is :
the RemoteTransferHome can not be resolved.
and in the websphere's classpath i import some jar:
jnp-client.jar,jbosssx.jar,jboss-client.jar,and so on.
please help me!

   <<Less
About | Sitemap | Contact