[jboss-user] [JBoss Seam] - Proper way to instantiate seam managed component
iradix
do-not-reply at jboss.com
Fri Jul 21 16:53:58 EDT 2006
I have a SFSB that, when invoked by a JSF action, needs to delegate its' function to multiple other SFSB of the same type. I can't use the standard @In(create = true) annotation here because besides the fact that the delegates are stored in a List, I need a new unique instance for each one. What I've attempted to do is use the Component.newInstance() method, and although that does return an object of the correct type, that object does not appear to be intercepted correctly. Each of the delegates has a @Logger annotation yet the Log instance is always null. I even added @Intercept(InterceptionType.ALWAYS) but it has made no difference. This seems particular strange to me since I'd imagine all my SessionBeans would be intercepted due to the
<ejb-jar>
| <assembly-descriptor>
| <interceptor-binding>
| <ejb-name>*</ejb-name>
| <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
| </interceptor-binding>
| </assembly-descriptor>
| </ejb-jar>
statement in ejb-jar.xml. Am I making any glaring mistakes?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960023#3960023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960023
More information about the jboss-user
mailing list