You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Nathaniel Reed <na...@seastore.jpl.nasa.gov> on 2001/11/28 00:38:00 UTC

adding new services

For my application, I need to create an application-scoped singleton
class that implements the event notifier pattern.  The Turbine services
framework seems to be perfect for this!

Unfortunately, the documentation does not appear to address this.  Any
advice?

Also, this is a common problem.  I wonder if anyone else has implemented
this pattern in a reusable way?

Thanks
--
Nate Reed
Physical Oceanography Distributed Active Archive Center
Jet Propulsion Laboratory (Raytheon)
nate@seanet.jpl.nasa.gov
(626) 744-5528
(626) 744-5506



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: adding new services

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Nathaniel Reed <na...@seastore.jpl.nasa.gov> writes:

> For my application, I need to create an application-scoped singleton
> class that implements the event notifier pattern.  The Turbine services
> framework seems to be perfect for this!
>
> Unfortunately, the documentation does not appear to address this.  Any
> advice?

It's not end user documentation, but the existing Service
implementationss supply you with numerous examples (let's call it
"developer documentation" ;).  Clone your Service from an existing
implementation, not forgetting entries from
TurbineResources.properties.  (I highly recommend having your Service
supply default values for anything properties configured via
TR.props.)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: adding new services

Posted by Saimon Moore <sa...@yahoo.co.uk>.
On Jue 29 Nov 2001 00:23, Nathaniel Reed wrote:
> Yes, when you have tested I would be interested in seeing it and you may
> want to consider contributing it to the project.

Will do...

> I managed to find a good description of this pattern, including some sample
> Java code from a reprinted Java Report article (July '98) on the web
> (searched for "Event Notifier Pattern" on Yahoo!).

We probably read the same article.. ;) 
(S.Guptra, J.Hartkopf, S.Ramaswamy, Java Report, July 1998, vol 3, No7)

> A web event model is something I have been very interested in using for
> some time.  Barracuda (barracuda.enhdyra.org) implements a similar pattern
> but it seems web-centric (ie. dealing with HTTP events) and I am reluctant
> to try to integrate it with turbine.  To my knowledge, an appropriate
> one-to-many event handling model is lacking in most web app frameworks.
>
> J2EE Blueprints describes a simple approach similar to Turbine's "Action
> Events." Events are mapped at the web tier to "business events," which are
> handled by a series of case-switch statements in a stateless session bean. 
> A true object-oriented event notifier implementation would be an
> improvement over this procedural approach.

That was my thought aswell....

> In the meantime, I'll use yours and Daniel's advice on implementing
> services.
>
> Thanks,
> Nate

good luck...


Saimon

> Saimon Moore wrote:
> > On Mié 28 Nov 2001 00:38, Nathaniel Reed wrote:
> > > For my application, I need to create an application-scoped singleton
> > > class that implements the event notifier pattern.  The Turbine services
> > > framework seems to be perfect for this!
> > >
> > > Unfortunately, the documentation does not appear to address this.  Any
> > > advice?
> > >
> > > Also, this is a common problem.  I wonder if anyone else has
> > > implemented this pattern in a reusable way?
> > >
> > > Thanks
> > > --
> > > Nate Reed
> > > Physical Oceanography Distributed Active Archive Center
> > > Jet Propulsion Laboratory (Raytheon)
> > > nate@seanet.jpl.nasa.gov
> > > (626) 744-5528
> > > (626) 744-5506
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org> For additional
> > > commands, e-mail: <ma...@jakarta.apache.org>
> >
> > I've implemented this for my app but I haven't tested it yet and I want
> > to make sure it works well first...once I have it tested I'll send off
> > the code to the list...
> >
> > If you'd like I can send it as is to you privately whenever you want.
> >
> > I did what Daniel said...basically copying from an existing service.
> >
> > Saimon
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:  
> > <ma...@jakarta.apache.org> For additional
> > commands, e-mail: <ma...@jakarta.apache.org>
>
> --
> Nate Reed
> Physical Oceanography Distributed Active Archive Center
> Jet Propulsion Laboratory (Raytheon)
> nate@seanet.jpl.nasa.gov
> (626) 744-5528
> (626) 744-5506
>
>
>
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: adding new services

Posted by Nathaniel Reed <na...@seastore.jpl.nasa.gov>.
Yes, when you have tested I would be interested in seeing it and you may want to
consider contributing it to the project.

I managed to find a good description of this pattern, including some sample Java
code from a reprinted Java Report article (July '98) on the web (searched for
"Event Notifier Pattern" on Yahoo!).

A web event model is something I have been very interested in using for some
time.  Barracuda (barracuda.enhdyra.org) implements a similar pattern but it seems
web-centric (ie. dealing with HTTP events) and I am reluctant to try to integrate
it with turbine.  To my knowledge, an appropriate one-to-many event handling model
is lacking in most web app frameworks.

J2EE Blueprints describes a simple approach similar to Turbine's "Action Events."
Events are mapped at the web tier to "business events," which are handled by a
series of case-switch statements in a stateless session bean.  A true
object-oriented event notifier implementation would be an improvement over this
procedural approach.

In the meantime, I'll use yours and Daniel's advice on implementing services.

Thanks,
Nate

Saimon Moore wrote:

> On Mié 28 Nov 2001 00:38, Nathaniel Reed wrote:
> > For my application, I need to create an application-scoped singleton
> > class that implements the event notifier pattern.  The Turbine services
> > framework seems to be perfect for this!
> >
> > Unfortunately, the documentation does not appear to address this.  Any
> > advice?
> >
> > Also, this is a common problem.  I wonder if anyone else has implemented
> > this pattern in a reusable way?
> >
> > Thanks
> > --
> > Nate Reed
> > Physical Oceanography Distributed Active Archive Center
> > Jet Propulsion Laboratory (Raytheon)
> > nate@seanet.jpl.nasa.gov
> > (626) 744-5528
> > (626) 744-5506
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org> For additional
> > commands, e-mail: <ma...@jakarta.apache.org>
>
> I've implemented this for my app but I haven't tested it yet and I want to
> make sure it works well first...once I have it tested I'll send off the code
> to the list...
>
> If you'd like I can send it as is to you privately whenever you want.
>
> I did what Daniel said...basically copying from an existing service.
>
> Saimon
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
Nate Reed
Physical Oceanography Distributed Active Archive Center
Jet Propulsion Laboratory (Raytheon)
nate@seanet.jpl.nasa.gov
(626) 744-5528
(626) 744-5506



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: adding new services

Posted by Saimon Moore <sa...@yahoo.co.uk>.
On Mi� 28 Nov 2001 00:38, Nathaniel Reed wrote:
> For my application, I need to create an application-scoped singleton
> class that implements the event notifier pattern.  The Turbine services
> framework seems to be perfect for this!
>
> Unfortunately, the documentation does not appear to address this.  Any
> advice?
>
> Also, this is a common problem.  I wonder if anyone else has implemented
> this pattern in a reusable way?
>
> Thanks
> --
> Nate Reed
> Physical Oceanography Distributed Active Archive Center
> Jet Propulsion Laboratory (Raytheon)
> nate@seanet.jpl.nasa.gov
> (626) 744-5528
> (626) 744-5506
>
>
>
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>

I've implemented this for my app but I haven't tested it yet and I want to 
make sure it works well first...once I have it tested I'll send off the code 
to the list...

If you'd like I can send it as is to you privately whenever you want.

I did what Daniel said...basically copying from an existing service.

Saimon

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>