Been working on adding dependencies on the specified HAPartition for clustered EJB2/3 beans (https://jira.jboss.org/jira/browse/JBAS-4952 ) and am seeing an issue with EJB3.
The way I'm doing this is with a deployer that add an item to the JBossEnterpriseBeanMetaData.getDepends() set for clustered beans. This works fine for EJB2 beans and for EJB3 jars with an xml descriptor. But it doesn't work if there is no xml descriptor.
I tracked the issue down to this in Ejb3Deployment:
protected void deployElement(Ejb3HandlerFactory factory, ClassFile cf, InitialContext ctx) throws Exception { Ejb3Handler handler = factory.createHandler(cf); handler.setCtxProperties(unit.getJndiProperties()); if (handler.isEjb() || handler.isJBossBeanType()) { List<Container> containers = handler.getContainers(cf, this);