[jboss-dev-forums] [Design of EJB 3.0] - Re: Inconsistent usage of the Ejb3Deployment.deploymentScope
bstansberry@jboss.com
do-not-reply at jboss.com
Tue May 13 14:32:52 EDT 2008
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#4150489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150489
More information about the jboss-dev-forums
mailing list