users@glassfish.java.net

Re: POJO serialization between JSF managed bean and EJB session bean

From: Gerald Holl <gerald_at_holl.co.at>
Date: Mon, 05 Nov 2007 21:17:36 +0100

glassfish_at_javadesktop.org wrote:
> If you want an optimized invocation path between a web component and an EJB, your best bet is to use the Local EJB view instead of the Remote view. In the Local EJB view, parameters and return values are passed by reference. You'll need to package your .war and ejb-jar within the same .ear.

Hello,

The .war file and the ejb.jar file are already in the same .ear file.
Directory structure:
lib:
   entitiy-beans.jar
META-INF:
   MANIFEST.MF
session-beans.jar
web.war

Maybe the lookup code is wrong:
new InitialContext().lookup(MyBeanInterface.class.getName());

cheers,
Gerald