users@glassfish.java.net

Re: inheritance in session beans

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Jul 2009 06:23:57 PDT

I doubt that solution is working, you may get an error cause repeated interface at Default class - LocalAImpl implements LocalA, but Default will try again to implement LocalA.

I think you wanted to write this:

@Local
public interface DefaultLocal extends LocalA
{
// nothing in here yet
}

// like in case of SpecA
@Stateless
public class Default extends LocalAImpl implements DefaultLocal
{
// nothing in here except attributes/private functions/and other
// code specific to default
}


remaining codesnipets are the same
[Message sent by forum member 'amorfevo' (amorfevo)]

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