1 Reply Latest reply on Apr 3, 2006 4:40 PM by Alexander Sack

    Custom annotations on an EJB3 problem

    Alexander Sack Novice

      Hi, I'm pretty sure I had a piece of code that looked up an EJB3 STSB and looked for a custom annotation (on top of a class) outside the EJB3 spec namespace. This worked on 4.0.3SP1. But in 4.0.4RC1, I can't seem to process any custom annotations on my bean. Both I believe we running EJB3RC5.

      Why can't I do this now? Can you not use other annotations on top of the EJB3 domain?

      I'm using simply a lookup of my bean's local interface and then going x.getClass().getAnnotation(MyAnnotation.Class) etc.

      Thanks!

        • 1. Re: Custom annotations on an EJB3 problem
          Alexander Sack Novice

           

          "asack" wrote:
          Hi, I'm pretty sure I had a piece of code that looked up an EJB3 STSB and looked for a custom annotation (on top of a class) outside the EJB3 spec namespace. This worked on 4.0.3SP1. But in 4.0.4RC1, I can't seem to process any custom annotations on my bean. Both I believe we running EJB3RC5.

          Why can't I do this now? Can you not use other annotations on top of the EJB3 domain?

          I'm using simply a lookup of my bean's local interface and then going x.getClass().getAnnotation(MyAnnotation.Class) etc.

          Thanks!


          I just realized I was doing this first via @PostContruct on this but now I'm doing this on the Proxy interface to the object which is probably my problem. Damn it...