I tried to create two spring bean factories, with
A
B (with ParentBeanFactory=(A))
The problem is B gets deployed before A, in which case it can't find A in JNDI since A has not been deployed yet.
Any ideas on a solution?
Simple solution is to rename the .spring archives - so that A is lexicograficaly before B.
Or you can set your own deployment units comparator in MainDeployer - see <JBOSS_HOME>\server\default\conf\xmdesc\org.jboss.deployment.MainDeployer-xmbean.xml