If you have access to the HttpSession, though, you can grab the
service.  I had something that listened for session timeouts:

import org.apache.tapestry5.TapestryFilter;
import org.apache.tapestry5.ioc.Registry;
...
public class SessionTimeoutNotifier implements
HttpSessionBindingListener, Serializable
{
  ...
  public void valueUnbound(HttpSessionBindingEvent event)
  {
    Registry registry = (Registry)
event.getSession().getServletContext().getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME);
    MyService myService = registry.getService(MyService.class);
    myService.doSomething();
    ...
  }
}

mrg


On Tue, Nov 8, 2011 at 10:24 AM, derkoe
<tapestry.christian.koeb...@gmail.com> wrote:
>
> Tim Fletcher wrote:
>>
>> Hi All,
>>
>> I have spent the last day trying to find a simple method for adding web
>> services via Tapestry5, but have only found slightly old
>> tutorials referring to Tapestry4.
>>
>> Do you guys have any specific recommendations?
>>
>> Ideally, i would like to use JAX-WS style annotations.
>>
>> Thanks in advance,
>> Tim
>>
>
> Here's a simple integration for Metro (JAX-WS RI):
> https://github.com/derkoe/tapestry-jaxws
>
> You can also use the libraries (Metro, CXF) directly by then you cannot
> inject Tapestry services.
>
> --
> Chris
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Web-services-using-Tapestry-tp4974432p4974549.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to