In my servlet I want to inject an EJB, only if its available.
@EJB
| MyBeanClass myBean;
My requirement is that 'myBean' gets initialized if corresponding EJB is available
in the application, otherwise it stays NULL.
Is there a way to achieve this? Is there a way to catch injection exceptions?
I don't want to do a lookup since lookup requires knowledge of application name as
well and I don't want to depend on that.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081436#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...