Tomas Bartalos [http://community.jboss.org/people/barti] created the discussion

"EJB inside WAR deployment order"

To view the discussion, visit: http://community.jboss.org/message/623781#623781

--------------------------------------------------------------
Hi,
Is there a way how to influence the deployment order of EJB packed inside WAR 
(according to EJB 3.1 spec).

Background: We have a servlet filter, where we need to access EJB bean.
The problem is, that the filter is Guice driven, so we can't use @EJB 
annotation in the code, however we have to make a custom ejb lookup.

Problem: When we deploy the web app, we get an error saying, that the EJB is 
not bound, because the web app and the filter is initialized before the EJB.

Workaround: If I create a plain old servlet filter with @EJB annotation to an 
existing EJB, the deployment order is correct (1. EJB, 2. Web app).
However this forces me to create useless filter, with @EJB reference to some 
existing bean.
Is there a "proper" way how to influence the order ?

thanks for your answers,
Tomas
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623781#623781]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to