Hi,

I'm using axis2-1.5.1. What is the JSR181 equivalent of the parameter "ServiceObjectSupplier" in services.xml? Is it sensible to write a custom POJODeployer?

I'm trying to integrate Google Guice and Axis2 using JSR181 annotated POJOs to define my web service.

a) I can make Guice inject dependencies into my services by adding the parameter

 <parameter name="ServiceObjectSupplier" locked="false">
com.example.guiceintegration.GuiceServiceObjectSupplier
 </parameter>
to my services.xml, where com.example.guiceintegration.GuiceServiceObjectSupplier is an implementation of org.apache.axis2.ServiceObjectSupplier which supplies instances of the service object obtained from the Guice injector.

b) I can deploy JSR181 annotated POJOs by putting the .class in the directory specified in <deployer extension=".class" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/> in my axis2.xml


What is the best way to combine a) and b)?

Either

1) Is there an annotation which does the job of the ServiceObjectSupplier parameter? I would like something like @WebService(name="foo", serviceobjectsupplier=GuiceServiceObjectSupplier.class).

or

2) Can I achieve the effect I want by writing a custom POJODeployer? I'm not very familiar with the axis2 codebase - is there a hook for creating service objects?

might be good approaches.









---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to