This content has been marked as final.
Show 2 replies
-
1. Re: Session / Message Driven Beans load sequence
jaikiran Dec 23, 2008 9:45 AM (in response to drfranknfurter)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()? -
2. Re: Session / Message Driven Beans load sequence
drfranknfurter Dec 23, 2008 5:23 PM (in response to drfranknfurter)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.