Thanks for your reply, but I think there is a misunderstanding:
I want to DEFINE a service inside a module. That means the module.xml is taking somehow the place of the service.xml and defines the service.
Somthing like:
<module name="dummy_module">
   <service name="HelloService">
      ...
   </service>
</module>

Is this possible?
Thanks,
Simon


Martin Gainty wrote:
technically these are 2 separate questions:

2)answered first
/META-INF/services.xml
<service name="Axis2ServiceName">
 <module ref="addressing" />

2)from AxisClient:
package org.apache.axis2.engine;
public class YourServiceClass
{
 org.apache.axis2.engine.axisConfig config =
ConfigurationContextFactory.createDefaultConfigurationContext().getAxisConfi
guration();
    org.apache.axis2.service.description.AxisService service =
org.apache.axis2.service.description.AxisService.createService(YourService.c
lass.getName(), axisConfig);
        org.apache.axis2.description.AxisModule module =
axisConfig.getModule("addressing");
        assertNotNull(module);

        service.engageModule(module);
        assertNotNull(service);
}

HTH
Martin

----- Original Message -----
From: "Simon Steinacker" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 12, 2008 2:28 PM
Subject: Axis2: define services in module.xml


Hello,

I want that a service is only available if a module is present... Can I
define services inside a module.xml?
I think I have already seen that somewhere in some sample, but am not
sure where exactly.
Maybe someone can help me!

Thanks a lot,
Simon

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





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

Reply via email to