Patches item #551851, was opened at 2002-05-03 13:49
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551851&group_id=22866
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nguyen (wildnam)
Assigned to: Nobody/Anonymous (nobody)
Summary: Call in Jboss an Ejb from Ejb by Newbie
Initial Comment:
(sorry for my english)
Hello, I've succeded to call a Jboss EJB from a client
Java (remote), but when i perform a call from ejb to
an ejb, i have errors at the narrow call (I've try
local and remote way)
could someone help me ?
--------------------------------------
my call from a client java :
Context ctx = getJBossInitialContext();
Object ref = ctx.lookup("ShopRemote");
ShopRemoteHome shopRemoteHome = (ShopRemoteHome)
PortableRemoteObject.narrow(ref, ShopRemoteHome.class);
----------
...with :
----------
javax.naming.Context getJBossInitialContext()
throws Exception {
java.util.Hashtable JNDIParm = new
java.util.Hashtable();
JNDIParm.put
(Context.PROVIDER_URL, "192.168.0.3");
JNDIParm.put
(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.N
amingContextFactory");
return new InitialContext(JNDIParm);
}
-------------------------------------
my call from an ejb Jboss :
Context ctx = new InitialContext();
Object ref = ctx.lookup("ShopRemote");
ShopRemoteHome shopRemoteHome = (ShopRemoteHome)
PortableRemoteObject.narrow(ref,ShopRemoteHome.class);
Error :
java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.ServerException: null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
at sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run
(Transport.java:148)
at java.security.AccessController.doPrivileged
(Native Method)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551851&group_id=22866
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development