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#4081436
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081436
i did a little debugging and am finding that in org.jboss.seam.core.Manager.restoreAndLockConversation() the call to ConversationEntry.lock() is returning false because Manager.instance().getConcurrentRequestTimeout() (which is set to 1000 ms) has been exceeded.
it looks like our request processing is taking more than 1000ms to complete, so i guess i need to increase the value of org.jboss.seam.core.manager.concurrentRequestTimeout?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081434#4081434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081434