axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanka Samaranayke <ssa...@gmail.com>
Subject Re: [AXIS2] Engage module problem
Date Thu, 06 Sep 2007 05:30:29 GMT
Hi Lorenzo,

Pls find my comments inlined ..



Lorenzo wrote:
> 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);
>   

try openspcoopService.engageModule(axisCfg.getModule("PD")); instead 
of the above.

Best,
Sanka





> (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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>   


-- 
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message