I have a Spring message receiver mostly working but it needs more testing. I'm waiting until after the Axis2 1.0 release to try and get it in.  It requires a dependancy on spring.jar - apache license which helps - so it needs to be discussed. This is the ideal solution.

The alternative which I've used alot is as you mentioned an object factory. A lot of apps use an ObjectFactory anyways for Junit and taglibs that can't do autowiring. Or you can use your own class that does 'implements ApplicationContextAware'  . See the spring forums for more info.

You can't use spring in axis2 the way axis 1.x does, because we don't have support for jax-rpc yet. That is planned AFAIK for after axis2 1.0 .

HTH,
Robert
http://www.braziloutsource.com/

On 4/27/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
Hello there! I've seen some implementations of how to plug Spring + Axis2 here. I have a few questions.

1st. Isn't it possible to use something like we had on Axis 1.x? I mean just a class that could have access to ServletContext? All I need is the Servlet context :(
2nd. I've seen a post taliking about using an ObjectFactory in my WebServices, but if I have a factory been instantiated by Spring Listener why bother having another one?

If someone here is using Axis2+Spring would you mind sharing your solution?

Best Regards

PS:Shouldn't it be a topic on the wiki?

Reply via email to