users@glassfish.java.net

Re: Call remote EJB3 module from web application.

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Dec 2007 07:59:22 PST

Hi Bob,

Since it's a EJB 2.1 bean, you need to narrow it first from corba object:

Object obj = PortableRemoteObject.narrow(ctx.lookup("ejb/UserAdmin/UserBean), UserSessionHome.class);

UserSessionHome home = (UserSessionHome) obj;

This has been simplified in EJB 3.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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