users@glassfish.java.net

_at_Local Bean Injection - How?

From: Q Beukes <java.net_at_add.za.net>
Date: Mon, 4 Aug 2008 17:45:49 +0200

Hey,

I have a bunch of beans with both Local and Remote interfaces. We need at
least Remote interfaces, as our beans are queried from secondary servers,
though I would like to use Local references when accessing within the same
server instance.

I am hosting both a WAR and an EJB inside the same glassfish instance, but
doing the following gives me errors about not finding the bean.
@EJB MyBeanLocal myBean;

My session bean DEFINITELY implements both the @Local interfaces and @Remote
interface, and the MyBeanLocal is DEFINITELY the @Local. Doing the same but
replacing the Local with Remote works fine though.


-- 
Quintin Beukes