I'm trying to access the annotations on a @In property (which is a SFSB) from another SFSB. However, the annotations do not appear to be accessible since the @In SFSB is proxied.
Is there a way to access the annotations? Or should I go ask in another forum (pointers to the right one? I tried asking in the beginners forum)? Specifically I have the following class: @Name("quote.editor") | @Stateful | public class QuoteEditor implements IQuoteEditor{ | | public Quote quote; | | @Relate(name = "quote") | public String save(){ | return super.save(); | } | } In another SFSB I have a reference to the above SFSB: @Stateful | @Scope(ScopeType.CONVERSATION) | @Name("quote.configurator") | public class QuoteConfigurator implements IQuoteConfigurator { | | private static final Log log = LogFactory.getLog(QuoteConfigurator.class); | | @In(value="quote.editor") | private IQuoteEditor qEditor; | | public String configure(){ | log.fatal(" methods for class["+qEditor.getClass()+"]:"); //<-- Proxy class and not a QuoteEditor | for(Method m: qEditor.getMethods()){ | log.fatal(" method["+m.getName()+"]"); | for(Annotation ann : m.getAnnotations()){ | log.fatal(" int ann["+ann+"]"); | } | } | return "configure"; | } | | } All of the methods I expect (and a few more from the proxy stuff), are logged. However, none of the annotations are logged. Also, I have access to the Local interface (IQuoteEditor) annotations, just not the SFSB object (QuoteEditor) and its annotations. Is there a way to access the annotations on the proxied object? TIA, Chris.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947132#3947132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947132 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user