It's including an "ear=xxx" attribute in the ObjectName even though there is
no ear, and is using the jar name as the attribute value.
This comes from o.j.e.javaee.JavaEEComponentHelper.createObjectName(JavaEEModule module,
...)
| StringBuilder sb = new StringBuilder(Ejb3Module.BASE_EJB3_JMX_NAME +
",");
| JavaEEApplication ear = module.getApplication();
| if (ear != null)
| {
| sb.append("ear=");
| sb.append(ear.getName());
| sb.append(",");
| }
| .....
|
The general concern I have is that existing code expects Ejb3Deployment.getApplication()
and getEar() to return null if there is no ear involved. The above is the only usage I
find for getApplication(). Searching for other uses of Ejb3Deployment.getEar() I find them
in DeploymentPersistenceUnitResolver.getPersistenceUnitDeployment(), in the
PersistenceUnitDeployment() constructor and in
ProxyFactoryHelper.getDeploymentSummaryFromContainer().
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150489#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...