[jboss-dev-forums] [Design of EJB 3.0] - Inconsistent usage of the Ejb3Deployment.deploymentScope fie
bstansberry@jboss.com
do-not-reply at jboss.com
Tue May 13 13:27:45 EDT 2008
Seeing some inconsistent usage of the org.jboss.ejb3.Ejb3Deployment class' deploymentScope field. This may be just due to ongoing refactoring, but want to point it out.
Looks like Ejb3Deployment treats the deploymentScope field as indicating the presence of an ear in the deployment -- see the getEar() and getApplication() methods which return it. But looking at Ejb3Deployer.deploy() in the AS, it looks like a JBoss5DeploymentScope will be created and passed to the Ejb3Deployment whether or not the deployment is an ear.
One place this shows up is in the creation of ObjectNames for beans. For example, deploying a bean named VMTrackerBean in a clusteredsession-test.jar with no enclosing ear results in the following object name for the bean:
jboss.j2ee:ear=clusteredsession-test.jar,jar=clusteredsession-test.jar,name=VMTrackerBean,service=EJB3
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150478#4150478
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150478
More information about the jboss-dev-forums
mailing list