bmdBuilder.addConstructorParameter(EsbMetaData.class.getName(), esbMetaData);
// Setup the second constructor argument (the name of the mbean).
final String mbeanName = esbBeanPrefix + ":deployment=" + deploymentUnit.getSimpleName();
bmdBuilder.addConstructorParameter(String.class.getName(), mbeanName);
// Setup the third constructor argument (vfs deployment unit).
bmdBuilder.addConstructorParameter(VFSDeploymentUnit.class.getName(), deploymentUnit);
if (warFilesDir == null)
{
final String errorMsg = String.format("No property named '%s' was configured in jbossesb.sar/META-INF/jboss-service.xml for %s", "warFilesDir", getClass().getName());
throw new DeploymentException(errorMsg);
}