users@glassfish.java.net

Re: Disabling EJB annotation loading.

From: <glassfish_at_javadesktop.org>
Date: Thu, 16 Oct 2008 12:47:18 PDT

There's no Java EE spec-defined way to ignore annotations on a class-by-class or type-specific basis. The closest you can get is to use the metadata-complete attribute in web.xml or ejb-jar.xml. When that is set to true, all annotation processing is disabled for the entire module. You could then define whatever components you really want to be enterprise beans using elements in ejb-jar.xml.
[Message sent by forum member 'ksak' (ksak)]

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