I have to add a module to a service.

All go fine id i engage it globally in axis.xml, but how to engage it
programmatically?

--- CODE START ---
 
AxisConfiguration axisCfg = configurationContext.getAxisConfiguration();
AxisService openspcoopService = new
AxisService(OPENSPCOOP_SERVICE_NAME);
AxisOperation operation = new InOutAxisOperation(OPERATION_Q_NAME);
operation.setMessageReceiver(new OpenSPCoopMessageReceiver());
openspcoopService.addOperation(operation);
List transports = new ArrayList();
transports.add(org.apache.axis2.Constants.TRANSPORT_HTTP);
transports.add("https");
openspcoopService.setExposedTransports(transports);
axisCfg.addService(openspcoopService);

--- CODE END ---

i tryed with 

openspcoopService.engageModule(axisCfg.getModule("PD"), axisCfg);

(PD is the name of the module) but it log that it is just engaged (but
it not work)

openspcoopService.addModuleref("PD");

doesn't work too...


any suggestion?

thx, Lorenzo



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to