ejbModule.setConstructor(ctor);
// set attributes
List<ServiceAttributeMetaData> attrs = new ArrayList<ServiceAttributeMetaData>();
// Transaction manager
ServiceAttributeMetaData attr = new ServiceAttributeMetaData();
attr.setName("TransactionManagerFactory");
ServiceDependencyValueMetaData dependencyValue = new ServiceDependencyValueMetaData();
dependencyValue.setDependency(getTransactionManagerServiceName());
dependencyValue.setProxyType("attribute");
attr.setValue(dependencyValue);
attrs.add(attr);
// Security management
attr = new ServiceAttributeMetaData();
attr.setName("SecurityManagement");
ServiceInjectionValueMetaData injectionValue = new ServiceInjectionValueMetaData(securityManagementName);
attr.setValue(injectionValue);
attrs.add(attr);
//Policy Registration
attr = new ServiceAttributeMetaData();
attr.setName("PolicyRegistration");
ServiceInjectionValueMetaData prInjectionValue = new ServiceInjectionValueMetaData(policyRegistrationName);
attr.setValue(prInjectionValue);
attrs.add(attr);
// Add injection of the WebServiceName
String wsName = getWebServiceName();
if (wsName != null)
{
ServiceAttributeMetaData ws = new ServiceAttributeMetaData();
ws.setName("WebServiceName");
ServiceDependencyValueMetaData wsDepends = new ServiceDependencyValueMetaData();
wsDepends.setDependency(wsName);
ws.setValue(wsDepends);
attrs.add(ws);
}
// Injection of the TimerService
ServiceAttributeMetaData tms = new ServiceAttributeMetaData();
ServiceDependencyValueMetaData tmsDepends = new ServiceDependencyValueMetaData();
tms.setName("TimerService");
tmsDepends.setDependency(timerServiceName);
tmsDepends.setProxyType("attribute");
tms.setValue(tmsDepends);
attrs.add(tms);
ejbModule.setAttributes(attrs);
List<ServiceDependencyMetaData> dependencies = new ArrayList<ServiceDependencyMetaData>();