contextID = deploymentUnit.getSimpleName();
// appMetaData.gsetJaccContextID(contextID);
/* PolicyConfiguration pc = null; */
while (beans.hasNext())
{
BeanMetaData bean = (BeanMetaData) beans.next();
log.info("Deploying " + bean.getEjbName());
Container con = createContainer(bean, deploymentUnit);
addContainer(con);
// @todo support overriding the context id via metadata is needed
con.setJaccContextID(contextID);
}
// only one iteration should be necessary, but we won't sweat it.
// 2 iterations are needed by cmp...jdbc/bridge/JDBCCMRFieldBridge which
// assumes persistence managers are all set up for every
// bean in the relationship!
ListIterator iter = containerOrdering.listIterator();
while (iter.hasNext())
{
Container con = (Container) iter.next();
ObjectName jmxName = con.getJmxName();
/*
* Add the container mbean to the deployment mbeans so the state of the deployment can be tracked.
*/
server.registerMBean(con, jmxName);
// deploymentUnit.mbeans.add(jmxName);
BeanMetaData metaData = con.getBeanMetaData();
Collection<ObjectName> depends = new ArrayList<ObjectName>();
for (String dependsName : metaData.getDepends())
{
depends.add(ObjectName.getInstance(dependsName));
}
Iterator<String> invokerBindings = metaData.getInvokerBindings();
while (invokerBindings != null && invokerBindings.hasNext())
{
String invokerBindingName = invokerBindings.next();
InvokerProxyBindingMetaData ipbmd = appMetaData.getInvokerProxyBindingMetaDataByName(invokerBindingName);
if (ipbmd != null)