I have a scenario where I MDB triggers a JCA adaptor to activate. During the activation process a session bean (local interface) is looked up to do some work.
And who triggers the MDB? I mean who (and when) sends the message to the queue on which the MDB is listening? Can you post a snippet of the MDB showing where exactly the session bean is looked up? Is it part of onMessage()?
The Mdbs are associated with a rar in the jboss.xml. Then via annotations given activation config. I believe it is the activation config that informs the container to start it up. Please correct me if I am wrong.
As for the depends issue, I used @Depends, a jboss specific annotation, to get to to first load the session beans that the mdbs depend on.