boolean oneFailed = false;
boolean oneWarn = false;
try{
IASEjbExtraDescriptors iasEjbExtraDesc = descriptor.getIASEjbExtraDescriptors();
MdbConnectionFactoryDescriptor mdbConnFacDesc = iasEjbExtraDesc.getMdbConnectionFactory();
if(mdbConnFacDesc != null){
String jndiName = mdbConnFacDesc.getJndiName();
if(jndiName == null || jndiName.length()==0){
oneFailed = true;
addErrorDetails(result, compName);
result.failed(smh.getLocalString(getClass().getName()+".failed",
"FAILED [AS-EJB mdb-connection-factory] : jndi-name cannot be an empty string"));
}else{
if(jndiName.startsWith("jms/")){
addGoodDetails(result, compName);
result.passed(smh.getLocalString(getClass().getName()+".passed",
"PASSED [AS-EJB mdb-connection-factory] : jndi-name is {0}",new Object[]{jndiName}));
}else{
oneWarn = true;
addWarningDetails(result, compName);
result.warning(smh.getLocalString(getClass().getName()+".warning",
"WARNING [AS-EJB mdb-connection-factory] : jndi-name {0} should start with jms/",
new Object[]{jndiName}));
}
}
ResourcePrincipal defPrinci = mdbConnFacDesc.getDefaultResourcePrincipal();
if(defPrinci != null){
String name = defPrinci.getName();
if(name == null || name.length()==0){
oneFailed = true;
addErrorDetails(result, compName);