This content has been marked as final.
Show 3 replies
-
1. Re: Deployment of a RAR in an EAR with an EJB-JAR
vickyk Feb 5, 2009 3:27 AM (in response to mcconnma)You need to define the strict deployment as described here
https://jira.jboss.org/jira/browse/JBAS-2904
This will deploy the jee modules in the order they have been defined in the application.xml and jboss-app.xml.
Another option would be to rely on the dependencies feature of services in the jboss which is explained over here
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch2.chapter.html#ch2.servicedep.fig -
2. Re: Deployment of a RAR in an EAR with an EJB-JAR
mcconnma Feb 6, 2009 11:45 AM (in response to mcconnma)Hi vickyk,
I should of mentioned that this problem is occurring on 5.0-GA.
I added jboss-app.xml to the ear META-INF, but I still have the same issue, the EJB-JAR is being deployed first:<jboss-app> <module-order>strict</module-order> <loader-repository>com.x:archive=my.ear</loader-repository> </jboss-app>
The MDB in the ejb-jar is annotated as such:@ResourceAdaptor("x.rar")
I've played around with making that:@ResourceAdaptor("my.ear#x.rar")
but not sure if that would be needed, but didn't work either. Anything in the Deployer xml files for 5.0 I can take a look at?
Thanks, -
3. Re: Deployment of a RAR in an EAR with an EJB-JAR
jaikiran Feb 7, 2009 1:12 AM (in response to mcconnma)Try this on your EJB:
import org.jboss.ejb3.annotation.Depends; import org.jboss.ejb3.annotation.ResourceAdapter; @ResourceAdaptor("x.rar") @Depends("jboss.jca:service=RARDeployment,name=x.rar") public class MyEJB...
If that doesn't work please post the entire console logs along with the stacktrace.