2 Replies Latest reply on Oct 15, 2004 8:47 AM by bill.burke

    Abstract EJB superclass

    igorfie

      Is there anything in EJB3 spec that prevents me from marking an interface as both @Local and @Remote (with proper JNDI bindings, of course)? This does not seem to work with current EJB3 preview, so I wonder whether its a bug or a feature.

        • 1. Re: Abstract EJB superclass
          bill.burke

          Leave @Stateless off of the superclass and tag the subclasses. That should work.

          The fix is easy. Javassist should be able to tell whether the class is abstract or not.

          • 2. Re: Abstract EJB superclass
            bill.burke

            ....continuing....

            Actually, you're right, I don't see a easy fix for this and it would slow down deployment as for every class, I would have to look at their superclasses to determine if they were tagged as @Stateless.

            BTW, @Stateless is not an inheritable annotation so I don't think this usecase would be allowed by the specification.

            Bill