Re: T5 IoC for WebServices (jax-ws)
Does it means that today, the best should be to learn Axis if we need WebServices? 2007/5/29, Howard Lewis Ship <[EMAIL PROTECTED]>: Further, the "magic" injection right into private variables is a function of Tapestry's class transformation system; it's limited to Tapestry pages and components, which exist within specific packages. A more seamless solution for exposing Tapestry IoC services as web services is possible, but not in scope. I'm so busy now that breathing is barely in scope. On 5/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > 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. > > > > > > > > tapestry.app-package > > com.me.indexer > > > > > > > > app > > org.apache.tapestry.TapestryFilter > > > > > > > > app > > /* > > > > > > > > > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener > > > > > > > > SearchWS > > com.sun.xml.ws.transport.http.servlet.WSServlet > > > > 1 > > > > > > > > SearchWS > > /SearchWS > > > > > > So i can't write something like this : > > > > > > @WebService > > public class Searcher { > > > > private static final String START_DOC = "\n"; > > private static final String END_DOC = "\n"; > > > > @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 -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 IoC for WebServices (jax-ws)
Further, the "magic" injection right into private variables is a function of Tapestry's class transformation system; it's limited to Tapestry pages and components, which exist within specific packages. A more seamless solution for exposing Tapestry IoC services as web services is possible, but not in scope. I'm so busy now that breathing is barely in scope. On 5/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: 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. > > > > tapestry.app-package > com.me.indexer > > > > app > org.apache.tapestry.TapestryFilter > > > > app > /* > > > > > com.sun.xml.ws.transport.http.servlet.WSServletContextListener > > > > SearchWS > com.sun.xml.ws.transport.http.servlet.WSServlet > > 1 > > > > SearchWS > /SearchWS > > > So i can't write something like this : > > > @WebService > public class Searcher { > > private static final String START_DOC = "\n"; > private static final String END_DOC = "\n"; > > @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 -- 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
Re: T5 IoC for WebServices (jax-ws)
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. tapestry.app-package com.me.indexer app org.apache.tapestry.TapestryFilter app /* com.sun.xml.ws.transport.http.servlet.WSServletContextListener SearchWS com.sun.xml.ws.transport.http.servlet.WSServlet 1 SearchWS /SearchWS So i can't write something like this : @WebService public class Searcher { private static final String START_DOC = "\n"; private static final String END_DOC = "\n"; @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
T5 IoC for WebServices (jax-ws)
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. tapestry.app-package com.me.indexer app org.apache.tapestry.TapestryFilter app /* com.sun.xml.ws.transport.http.servlet.WSServletContextListener SearchWS com.sun.xml.ws.transport.http.servlet.WSServlet 1 SearchWS /SearchWS So i can't write something like this : @WebService public class Searcher { private static final String START_DOC = "\n"; private static final String END_DOC = "\n"; @Inject @Service("Indexer") private Indexer indexer; } How can I do to use tapestry 5 IoC in this contexte ? Thank's