users@glassfish.java.net

Re: Using EJB 3.0 session bean from J2EE 1.4 web project

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Sep 2008 13:53:51 PDT

> I forgot to ask about the EJB implementation of the
> create method.

You don't need one. It's only needed for stateful session beans.

> Does it return "this" ?

No, void.

> Your RemoteHome examples
> return void, and use
> the @Init annotation.

Init is only needed for SFSBs.

> Maybe the LocalHome
> interface's create method
> should also return void.

No. That needs to return the 2.x Local interface type since that's
the client programming contract.
[Message sent by forum member 'ksak' (ksak)]

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