[jboss-user] [JNDI and Naming] - @Depends not supported in Jboss AS 4.2.2 ?

Aurélien Lansmanne do-not-reply at jboss.com
Thu Jan 27 05:39:03 EST 2011

Aurélien Lansmanne [http://community.jboss.org/people/alansmanne] created the discussion

"@Depends not supported in Jboss AS 4.2.2 ?"

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


I've got a problem that seems to have already been solved on these forums... but the solution doesn't work for me.

I have a Queue and a simple MDB that implements MessageDrivenBean, MessageListener.
Sometimes, when the server is restarted, the queue starts "too early" and crash, because most of the EJBs are not yet deployed. 
So, I've tried to add 


at the beginning of my MDB class. But when I restart Jboss, I see that the MDB is still deployed first (actually second) before most EJBs...

I've even try to put 

     "I hope that my wrong syntax will crash at deployment !!!"

But nothing happenned... and the MDB was again deployed "first".

I'm using Jboss 4.2.2. I'm can't upgrade to Jboss 5, and start to plan a full switch to Quartz instead of JMS if I can't resolve this problem...

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110127/b094e9c4/attachment.html 

More information about the jboss-user mailing list