Re: @Broadcast annotation

2011-04-13 Thread Josh Canfield
> I don't think this is correct with regard to services that don't use > HttpServletRequest or HttpServletResponse directly or indirectly. If I'm > right, you can use most of your Tapestry services on them, speciallyl the > singleton ones. Ah yes, of course you are right. The proxy will get/create

Re: @Broadcast annotation

2011-04-13 Thread Thiago H. de Paula Figueiredo
On Wed, 13 Apr 2011 19:27:06 -0300, Josh Canfield wrote: When you receive a broadcast you are not in the Tapestry stack. You might think it would be cool to use your @Inject'd services when you get a broadcast, but you'll get an NPE because the thread that executes the broadcast is not a thre

Re: @Broadcast annotation

2011-04-13 Thread Taha Hafeez
That is exactly what i had concluded except for the injection part of it. Thanks for your insight regards Taha On Thu, Apr 14, 2011 at 3:57 AM, Josh Canfield wrote: > > Did you check the meteor module. In that case the Tapestry Filter will > run > > inside the Atmosphere Servlet. > > I've spent

Re: @Broadcast annotation

2011-04-13 Thread Josh Canfield
> Did you check the meteor module. In that case the Tapestry Filter will run > inside the Atmosphere Servlet. I've spent too much of today reading the white paper and experimenting because I'm intrigued by anything async these days. Atmosphere can work with Tapestry, as long as you don't want to

Re: @Broadcast annotation

2011-04-13 Thread Taha Hafeez
Hi Josh Did you check the meteor module. In that case the Tapestry Filter will run inside the Atmosphere Servlet. regards Taha On Wed, Apr 13, 2011 at 10:38 PM, Josh Canfield wrote: > I haven't played with Atmosphere specifically, but I've played a bit > Jetty continuations, or Servlet 3's st

Re: @Broadcast annotation

2011-04-13 Thread Josh Canfield
I haven't played with Atmosphere specifically, but I've played a bit Jetty continuations, or Servlet 3's startAsync in Tapestry. It's not a trivial integration, but I've gotten something barely working using Jetty's Continuations. For my solution I created an @AsyncEvent which essentially hijacks

Re: @Broadcast annotation

2011-04-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Apr 2011 08:48:59 -0300, wrote: Hello again! Hi! Is there any way to get the @Broadcast annotation from Atmosphere: http://atmosphere.java.net/nonav/apidocs/org/atmosphere/annotation/Broadcast.html working inside of a Tapestry5 page or component? I never tried Atmosphere, but t