Axis2 has an object supplier interface.  Below is an example of a
service which uses spring as its object supplier.  You could easily
create a TapestryObjectSupplier and use a TapestryServiceName
parameter to lookup the service.  I would think you could implement a
filter as mentioned above to set the registry into the servlet context
for access from this supplier.

<service name="ProductService">
  <parameter name="ServiceObjectSupplier" locked="false">
    
org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
  </parameter>
  <parameter name="SpringBeanName" locked="false">productService</parameter>
  <operation name="getForId">
    <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
  </operation>
  <operation name="getAll">
    <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
  </operation>
</service>

Ben

On Dec 5, 2007 1:24 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> I have an example of integration with axis,
>
> basicaly...
> I joined axis web.xml
> and tapestry web.xml
>
> then inside a stub class looked for the service..
>
> to make service available, I overriden tapestry filter
> and put the service into servletContext
>
>         ServletContext context = getServletContext();
>         context.setAttribute(BusinessLogic.SERVICE_NAME, registry.getService
> (BusinessLogic.class));
>
>
> then in skeleton class
>
>             HttpServlet axisServlet = (HttpServlet)
> AxisServer.getCurrentMessageContext().getProperty("transport.http.servlet");
>             businessLogic = (BusinessLogic) axisServlet.getServletContext
> ().getAttribute(BusinessLogic.SERVICE_NAME);
>
>
> if you have more than one service, just put registry there
> and fetch a service from registry later.
>
> this is what I've made to get it running without contemplating
> too much about it, any suggestion to make it better is welcom :)
>
> no matter what lib you use for web services, the easiest integration is to
> put it in the same context, and share reference via servletContext...
>
>
> Davor Hrg
>
>
>
>
>
>
> On Dec 5, 2007 9:48 AM, Peter Stavrinides < [EMAIL PROTECTED]>
> wrote:
>
>
> > Hi all,
> >
> > Is there any info/examples available on this subject, I would like to
> > convert a Tapestry service into a webservice.
> >
> > Thanks
> > Peter
> >
> > ---------------------------------------------------------------------
> > 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