You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Paul Fremantle <pz...@gmail.com> on 2005/10/07 08:29:22 UTC
[Axis2] Spring Support
Folks
I have prototyped some Spring support for Axis2. There are two new Receivers
Re: [Axis2] Spring Support
Posted by Davanum Srinivas <da...@gmail.com>.
Paul,
Could you please open a JIRA report?
thanks,
dims
On 10/7/05, Paul Fremantle <pz...@gmail.com> wrote:
> Ok...so GMail sent this before I was ready :-)
>
> Let's try again.
>
> There are two new receivers:
> SpringInOnlyMessageReceiver
> SpringInOutMessageReceiver
>
> These use a simple services.xml like this:
>
> <service name="springsample">
> <description>Sample Spring</description>
> <parameter name="SpringXmlURL" locked="false">spring.xml</parameter>
> <parameter name="SpringBeanName"
> locked="false">myBean1</parameter>
> <operation name="getComment">
> <messageReceiver
> class="org.apache.axis2.receivers.SpringInOutMessageReceiver"/>
> </operation>
> </service>
>
> The SpringXMLURL should probably be called something different. It points to
> a Spring XML file which is packaged in the AAR file.
> The SpringBeanName points to the bean that is to be called.
>
> I've attached the code which is just a scratch effort to look at, as well as
> a sample AAR file. I'll try and tidy it up if I get time :-)
>
> Paul
>
>
>
>
>
>
> On 10/7/05, Paul Fremantle <pz...@gmail.com> wrote:
> > Folks
> >
> > I have prototyped some Spring support for Axis2. There are two new
> Receivers
> >
> >
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: [Axis2] Spring Support
Posted by Paul Fremantle <pz...@gmail.com>.
Ok...so GMail sent this before I was ready :-)
Let's try again.
There are two new receivers:
SpringInOnlyMessageReceiver
SpringInOutMessageReceiver
These use a simple services.xml like this:
<service name="springsample">
<description>Sample Spring</description>
<parameter name="SpringXmlURL" locked="false">spring.xml</parameter>
<parameter name="SpringBeanName" locked="false">myBean1</parameter>
<operation name="getComment">
<messageReceiver class="
org.apache.axis2.receivers.SpringInOutMessageReceiver"/>
</operation>
</service>
The SpringXMLURL should probably be called something different. It points to
a Spring XML file which is packaged in the AAR file.
The SpringBeanName points to the bean that is to be called.
I've attached the code which is just a scratch effort to look at, as well as
a sample AAR file. I'll try and tidy it up if I get time :-)
Paul
On 10/7/05, Paul Fremantle <pz...@gmail.com> wrote:
>
> Folks
>
> I have prototyped some Spring support for Axis2. There are two new
> Receivers
>
>