You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Conrad <cc...@vasoftware.com> on 2005/05/09 22:45:06 UTC
Tapestry 4: Accessing HiveMind Registry outside of Tapestry
I'm currently working on an application where one of the requirements
is that I handle notifications from a second application. The
second application sends these notifications via an HTTP GET. From
my understanding of Tapestry (which is currently quite limited),
there is no easy way to write a page which handles arbitrary GET
parameters. So what I thought I'd do is write a simple Servlet which
would handle processing the notifications. Now I'm trying to find a
way to access the HiveMind Registry which Tapestry initialized for me
from this second Servlet. I need that HiveMind Registry so that I
can access the services defined in it. Is there any way to do this?
If not, is there a way to handle an arbitrary GET from a Tapestry
Page easily? I don't want to have to go to a heavier weight
architecture like SLSBs so that both Tapestry and this second Servlet
can access the same business objects easily.
Thanks,
--Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry 4: Accessing HiveMind Registry outside of Tapestry
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On May 9, 2005, at 4:45 PM, Chris Conrad wrote:
> I'm currently working on an application where one of the
> requirements is that I handle notifications from a second
> application. The second application sends these notifications via
> an HTTP GET. From my understanding of Tapestry (which is currently
> quite limited), there is no easy way to write a page which handles
> arbitrary GET parameters. So what I thought I'd do is write a
> simple Servlet which would handle processing the notifications.
> Now I'm trying to find a way to access the HiveMind Registry which
> Tapestry initialized for me from this second Servlet. I need that
> HiveMind Registry so that I can access the services defined in it.
> Is there any way to do this? If not, is there a way to handle an
> arbitrary GET from a Tapestry Page easily? I don't want to have to
> go to a heavier weight architecture like SLSBs so that both
> Tapestry and this second Servlet can access the same business
> objects easily.
Once in a Tapestry page, you can access all of the HttpServletRequest
stuff. So you can pass in any query string parameters that you
like. In Tapestry 3.0 (without the friendly URL patch) you'll still
end up with ?service=page/PageName as one of the parameters, but any
of the other parameters will pass through fine.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry 4: Accessing HiveMind Registry outside of Tapestry
Posted by Howard Lewis Ship <hl...@gmail.com>.
Note that I'm talking about 4.0, where the Tapestry ApplicationServlet
creates and manages the Registry.
On 5/9/05, Howard Lewis Ship <hl...@gmail.com> wrote:
> Current, Tapestry doesn't make its HiveMind registry visible.
>
> I'll look into allowing HiveMindFilter and Tapestry to share a single
> HiveMind Registry.
>
> On 5/9/05, Chris Conrad <cc...@vasoftware.com> wrote:
> > I'm currently working on an application where one of the requirements
> > is that I handle notifications from a second application. The
> > second application sends these notifications via an HTTP GET. From
> > my understanding of Tapestry (which is currently quite limited),
> > there is no easy way to write a page which handles arbitrary GET
> > parameters. So what I thought I'd do is write a simple Servlet which
> > would handle processing the notifications. Now I'm trying to find a
> > way to access the HiveMind Registry which Tapestry initialized for me
> > from this second Servlet. I need that HiveMind Registry so that I
> > can access the services defined in it. Is there any way to do this?
> > If not, is there a way to handle an arbitrary GET from a Tapestry
> > Page easily? I don't want to have to go to a heavier weight
> > architecture like SLSBs so that both Tapestry and this second Servlet
> > can access the same business objects easily.
> >
> > Thanks,
> > --Chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tapestry 4: Accessing HiveMind Registry outside of Tapestry
Posted by Howard Lewis Ship <hl...@gmail.com>.
Current, Tapestry doesn't make its HiveMind registry visible.
I'll look into allowing HiveMindFilter and Tapestry to share a single
HiveMind Registry.
On 5/9/05, Chris Conrad <cc...@vasoftware.com> wrote:
> I'm currently working on an application where one of the requirements
> is that I handle notifications from a second application. The
> second application sends these notifications via an HTTP GET. From
> my understanding of Tapestry (which is currently quite limited),
> there is no easy way to write a page which handles arbitrary GET
> parameters. So what I thought I'd do is write a simple Servlet which
> would handle processing the notifications. Now I'm trying to find a
> way to access the HiveMind Registry which Tapestry initialized for me
> from this second Servlet. I need that HiveMind Registry so that I
> can access the services defined in it. Is there any way to do this?
> If not, is there a way to handle an arbitrary GET from a Tapestry
> Page easily? I don't want to have to go to a heavier weight
> architecture like SLSBs so that both Tapestry and this second Servlet
> can access the same business objects easily.
>
> Thanks,
> --Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org