You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Joe Ammann <jo...@pyx.ch> on 2010/02/18 16:15:03 UTC
Can't get Axis handlers to work
Hi list
I'm about to write my first module with Axis2 1.5. Here's what I did until now
to my existing service:
- write 2 classes SimpleModule (implements org.apache.axis2.modules.Module)
and Simple handler (extends AbstractHandler implements Handler)
- write module.xml and put it together with the 2 classes into a .mar file
<module name="ExampleModule" module="example.SimpleModule">
<outflow>
<handler name="CommitHandler" class="example.SimpleHandler">
<order phase="MessageOut"/>
</handler>
</outflow>
</module>
- extend my services.xml with
<module ref="ExampleModule" />
- put the extend .aar file and the new .mar file into services/ resp. modules/
directory
I can see in the logs that my module is somehow picked up:
2010-02-18 15:57:30,380 INFO org.apache.axis2.deployment.ModuleDeployer -
Deploying module: ExampleModule - file:...../modules/ExampleModule.mar
I have DEBUG on an following this message above, I have nothing else that
would indicate that the handler is installed somehow.
And - my problem - the handler.invoke() is never called.
Any hints what I'm doing wrong?
--
CU, Joe
Re: Can't get Axis handlers to work
Posted by Joe Ammann <jo...@pyx.ch>.
On Thursday 18 February 2010 16:15:03 Joe Ammann wrote:
> And - my problem - the handler.invoke() is never called.
>
> Any hints what I'm doing wrong?
Ok, https://issues.apache.org/jira/browse/AXIS2-3588 was extremly helpful :-)
Of course, I also got the XML tags case wrong :-/ Now it works
--
CU, Joe