cyrill (3) [Avatar] Offline

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,

PeterJ (83) [Avatar] Offline
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:

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