boolean isEar = unit != unit.getTopLevel();
this.deploymentScope = new JBoss5DeploymentScope(unit.getParent(), isEar);
}
ejbResolver = new ClientEjbResolver(deploymentScope, unit.getSimpleName());
messageDestinationResolver = new MessageDestinationResolver(deploymentScope, xml.getMessageDestinations());
String on = Ejb3Module.BASE_EJB3_JMX_NAME + createScopeKernelName(unit, deploymentScope) + ",name=" + applicationClientName;
try
{
this.objectName = new ObjectName(on);