descriptor.getEjbBundleDescriptor().setTestsDone(getClass().getName());
if(ejbJar!=null)
{
EnterpriseBeans entBean = ejbJar.getEnterpriseBeans();
CmpResource cmpResource = entBean.getCmpResource();
if(cmpResource!=null)
{
String jndiName = cmpResource.getJndiName();
if(jndiName.length()==0)
{
result.failed(smh.getLocalString(getClass().getName()+".failed",
"FAILED [AS-EJB cmp-resource] : jndi-name cannot be an empty string"));
oneFailed=true;//4698046
}
else
{
if(jndiName.startsWith("jdbc/")|| jndiName.startsWith("jdo/"))
result.passed(smh.getLocalString(getClass().getName()+".passed",
"PASSED [AS-EJB cmp-resource] : jndi-name is {0}",new Object[]{jndiName}));
else{
result.warning(smh.getLocalString(getClass().getName()+".warning",
"WARNING [AS-EJB cmp-resource] : The jndi-name is {0}, the preferred jndi-name should start with jdbc/ or jdo/"
, new Object[]{jndiName}));
oneWarning=true;//4698046
}
}
DefaultResourcePrincipal defPrincipal = cmpResource.getDefaultResourcePrincipal();
if(defPrincipal!=null)
{
String name = defPrincipal.getName();
if(name.length()==0)
{