This content has been marked as final.
Show 1 reply
-
1. Re: Getting an instance of a bean from JBoss
alesj Oct 8, 2008 4:43 AM (in response to kpalania)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.