Hi all,
The EJB2.0 specification says (pages 63-64) that local interfaces must not be passed as an argument or result of a method on a bean's remote home or component interfaces. This makes sense since a plain old
Java reference has no meaning outside the JVM it was created and you need a stub in this case. So I understand that remote interface methods can only deal with remote bean's references.
But notice that the specification doesn't say anything about passing or returning remote interface references from a method on a bean's local home or component interfaces. On the other hand, HF-EJB on page 161 says: "Ok, there is one exception - remember, according to Bean law you must not return a bean's Remote interface from a local interface method". Why not? Why doesn't the spec mention this? It seems to me that a local client using a remote reference should work.
Thanks in advance,
Stefan
SCJP 1.4, SCBCD 1.3<br />IBM 141, 484, 486