I am using Jboss 3.0.0.
Is it possbile to return from method of Remote Interface of ABean remote
Reference on Bbean,
if local reference on BBean stores in Abean.
On example:
class ABean implements EntityBean{
...
// in remote interface
public BRemote getB(){
BLocal b = BLocalHome.findByXXX();
return b.getRemoteReference();
}
}
class BBean implements EntityBean{
...
// in local interface
public BRemote getRemoteReference()(){
return (BRemote) entityContext.getEJBObject(); // throws
exception...
}
}
Client invoke:
ARemote a = ARemoteHome.findByYYY();
BRemote b = a.getB();
But it's not work.
Throws:
java.lang.IllegalStateException: No remote interface defined.
at
org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl.getEJBObject(EntityE
nterpriseContext.java:184)
But reverse, by Remote reference getting Local reference (on server), work
fine.
Best Regards,
Viktor Shevchik.
mailto:[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user