Hi,
i'm currently working on a new Interceptor for EJB Injection on Actions.
I allready extendet it to work on fields and methods. But since i dont
like to make my own Annotation type i wanted to use the javax.ejb.ejb
anotation. But there is a small problem with that:
the annotation used by the ejb3-plugin for struts 2 has a field that
determines if the bean is statefull or stateless. I don't have this
bean, so how do i determine for the injection if the bean is statefull?
my first idea was to use reflection and look for @statefull or
@stateless on the beanclass. But since i don't have to know the class
this doesnt have to work.
the second idea was to do the lookup in any case and look then for the
annotation on the class.
Is there a better way to determine if a bean is statefull with only the
ejb-name for the jndi lookup?
Greetings,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]