From: <[EMAIL PROTECTED]>
> Hi Guys,
> I'm starting a new Turbine project - fresh slate,
> and have decided I will make use of Peer(s) and Pull model.
>
> Only thing is I can't find much documentation on the
> appropriate way to do this.
>
> Any suggestions... ( Scott E. ?) ?
>
> Ta,
>
> Patrick.
>
Hi Patrick.
The documentation for the pull service can be found by first selecting
the Services link under Documentation on the turbine site and then
Pull Service (there are a whole bunch of documents on the Services
page that are really useful, but their existence is not completely obvious
unless you make an effort to explore the turbine site).
http://jakarta.apache.org/turbine/services/pull-service.html
While the documentation is a little thin, it does point you to several
existing tools that are predefined by turbine - looking an the source
for these is the best way to go. The important point to grasp is that
this is actually a very simple concept that makes retrieving data for
your pages really really easy. In terms of benefits derived for the
amount of time required to grasp the concept the payback is
enormous.
I started my pull tool by copying the code necessary for the
ApplicationTool and Recyclable interfaces from one of the existing
tools and then added methods as necessary for providing the data
to my pages. After a short while I had a library of methods that
I could invoke whenever I needed them (not particularly OO on
my part). Most likely a request tool should be all you need - the
advantage being that you don't need to worry about keeping your
code threadsafe.
Cheers,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]