[jboss-user] [JBoss/Spring Integration] - Re: Getting an instance of a bean from JBoss
alesj
do-not-reply at jboss.com
Wed Oct 8 04:43:08 EDT 2008
The best way is to get it injected.
Same way we do it for Enterprise Beans and @Spring.
And you have different flavors of SpringInterceptor.
One to use with EJB3 (the simplest way to use it in JEE env), or you can use it as AOP interceptor.
If used with AOP you need to configure things a bit more.
But once you do that, there is no limit on what you can intercept.
In the worst case you can always fallback to JNDI lookup for BeanFactory
and then do simple getBean on BF.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180964#4180964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180964
More information about the jboss-user
mailing list