users@glassfish.java.net

inheritance in session beans

From: <glassfish_at_javadesktop.org>
Date: Sun, 21 Oct 2007 21:56:36 PDT

Hi

I have a statelss session bean that implements a local interface and then my other stateless session beans now will extend it..
so
@Local
public interface localA{
public void default()
}

@Stateless
public class Default implements localA
{
public void default(){
//something
}
}

@Statelss
public class SpecA extends Default{
public void default(){
//something more
super.default();
}
}



Facade now trys to look up specA
@EJB(name = "SpecA", beanInterface = localA.class, beanName = "SpecA")

This does not work when I try to use ejbContext to lookup Warning : Unable to determine local business vs. remote business designation for EJB 3.0 ref Unresolved Ejb-Ref


Any Ideas
CHeers
Priya
[Message sent by forum member 'priyasubu' (priyasubu)]

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