users@glassfish.java.net

Re: Session Bean Confusion

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Apr 2008 08:01:56 PDT

In that context, Remote interface refers to the EJB 2.x and earlier Remote Component interface , not to a 3.0 Remote Business interface. Only the legacy EJB 2.x (and earlier) Remote Home/Component interfaces subtype javax.ejb.EJBHome/EJBObject. @Remote is only used for the 3.0 case. Yes, it's a bit confusing, but that's the price for overhauling the programming model while still supporting the older approach. Section 3.2.1 has a good overview.

We also have an example of exposing an Adapted 2.x Remote view from a bean class implemented using the simplified API :

https://glassfish.dev.java.net/javaee5/ejb/examples/Adapted.html

 --ken
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=268802