return ejb;
}
*/
private void assertFullMessageDrivenBean(String prefix, JBossMetaData jbossMetaData, boolean first, Mode mode)
{
JBossMessageDrivenBeanMetaData mdb = assertJBossMessageDrivenBean(prefix, jbossMetaData);
assertId(prefix, mdb);
if(mode != Mode.JBOSS_DTD)
{
assertDescriptionGroup(prefix, mdb.getDescriptionGroup());
assertAnnotations(prefix, 2, mdb.getAnnotations());
assertIgnoreDependency(prefix, mdb.getIgnoreDependency());
assertEquals(prefix + "AOPDomain", mdb.getAopDomainName());
assertJndiRefs(prefix, 2, mdb.getJndiRefs(), mode);
assertMethodAttributes(prefix, mdb.getMethodAttributes(), mode);
}
assertEquals(prefix + "DestinationJndiName", mdb.getDestinationJndiName());
assertEquals(prefix + "LocalJndiName", mdb.getLocalJndiName());
assertEquals(prefix + "User", mdb.getMdbUser());
assertEquals(prefix + "Password", mdb.getMdbPassword());
assertEquals(prefix + "ClientId", mdb.getMdbClientId());
assertEquals(prefix + "SubscriptionId", mdb.getMdbSubscriptionId());
assertEquals(prefix + "RAR", mdb.getResourceAdapterName());
assertEquals(prefix + "ConfigurationName", mdb.getConfigurationName());
assertEquals(prefix + "SecurityProxy", mdb.getSecurityProxy());
if (first)
{
assertTrue(mdb.isExceptionOnRollback());
assertTrue(mdb.isTimerPersistence());
}
else
{
assertFalse(mdb.isExceptionOnRollback());
assertFalse(mdb.isTimerPersistence());
}
assertInvokerBindings(prefix, mdb.getInvokerBindings(), mode);
assertEnvironment(prefix, mdb.getJndiEnvironmentRefsGroup(), false, mode);
assertSecurityIdentity(prefix, "SecurityIdentity", mdb.getSecurityIdentity(), false, mode);
assertDepends(prefix, 2, mdb.getDepends());
assertIORSecurityConfig(prefix, mdb.getIorSecurityConfig(), mode);
assertSecurityIdentity(prefix, "EjbTimeoutIdentity", mdb.getEjbTimeoutIdentity(), false, mode);
// TODO DOM pool-config
assertActivationConfig(prefix, mdb.getActivationConfig(), mode);
}