The Tapestry filter puts the Registry into the ServletContext.  You should
be able to write a small wrapper implementation of your web service that
obtains the real implementation from the Registry and delegates all methods
to it.  Your Tapestry IoC implementation can use all the standard means of
injection.

On 5/29/07, David Avenante <[EMAIL PROTECTED]> wrote:

Hi ;)

I need to expose some services with webservices (beurkkk).
The probleme is the that the servlet for the web services is not processed
by my tapestry filter.


<context-param>
        <param-name>tapestry.app-package</param-name>
        <param-value>com.me.indexer</param-value>
    </context-param>

    <filter>
        <filter-name>app</filter-name>
        <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>app</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
        <listener-class>
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
</listener-class>
    </listener>
    <servlet>
        <servlet-name>SearchWS</servlet-name>
        <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet
</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>SearchWS</servlet-name>
        <url-pattern>/SearchWS</url-pattern>
    </servlet-mapping>

So i can't write something like this :


@WebService
public class Searcher {

    private static final String START_DOC = "<result>\n";
    private static final String END_DOC = "\n<result>";

    @Inject
    @Service("Indexer")
    private Indexer indexer;

    ....
}

How can I do to use tapestry 5 IoC in this contexte ?

Thank's




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

Reply via email to