cyrill (3) [Avatar] Offline
#1
Hello,

I have two ear files to deploy, where one ear references EJB's from the other ear. So the ear's have to be loaded in a specific order. How should I achieve this?

Possible solutions:
- put one ear in a directory *.last
- define two VFSDeployerScanners, one for each ear, but I do not know if the ordering is how I defined the scanners in profile.xml
- ???


Thanks for any hints,

Cyrill
PeterJ (83) [Avatar] Offline
#2
Re: Ordering of the same application types
Placing one into *.last is probably the easiest solution.

Another possibility is to have the second EAR file depend on one of the MBeans created for the EJBs in the first EAR file. This might help: http://www.jboss.org/community/docs/DOC-13178

Finally, profile.xml is not used by default - profile-repository.xml is.