1 Reply Latest reply on Dec 8, 2005 5:39 PM by Kabir Khan

    Get EJB3 implementation Class from JNDI for reading annotati

    Charles Kreps Newbie

      Given a JNDI EJB3 service name, I would like to be able to determine, via reflection, what annotations are present on the implementation Class object of of the EJB3.

      For example:
      If com.fake.Service is an interface and an implementation, com.fake.ServiceImpl, has a @Stateful annotation (binding it to the JNDI name "com.fake.Service"), I would like to read that the implementation has that @Stateful annotation on it. The client code only knows the name of the service and does not know that the implementation is com.fake.ServiceImpl.

      Any suggestions? Can I do this through JNDI?

      Thanks in advance,

      - Charles