You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2003/09/05 05:08:41 UTC
Re: Need to deprecate services in T2.3?
Henning P. Schmiedehausen wrote:
> Daniel Rall <dl...@finemaltcoding.com> writes:
>
>
>>EmailService is basically a copy of VelocityService, but we needed a
>>different configuration. I'm hoping that this is something that an
>>Avalon container can help with.
>
>
> Can you describe what this does in difference to the Velocity Service?
Scarab's EmailService is functionally equivalent to VelocityService. It
was created because we needed a separate instance of Velocity's
RuntimeInstance which uses a separate configuration. EmailService was
created so that that instance would be configured and fired up by
Fulcrum initialization (i.e. lifecycle managed). Since VelocityService
uses the singleton pattern and a separate configuration was need, it was
impossible to use...thus my allusion to Avalon.
- Dan
Re: Need to deprecate services in T2.3?
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Eric Pugh" <ep...@upstate.com> writes:
>I may try next week to start updating T2.4 to use the new fulcrum, and that
>might help on the learning curve for Scarab...
Ah, Eric, stop. Can we at least discuss our ideas for the 2.4 time
frame? I don't want to run off into a direction without any
architectural discussion first.
Regards
Henning
>Eric Pugh
>> -----Original Message-----
>> From: Daniel Rall [mailto:dlr@finemaltcoding.com]
>> Sent: Friday, September 05, 2003 5:09 AM
>> To: Turbine Developers List
>> Subject: Re: Need to deprecate services in T2.3?
>>
>>
>> Henning P. Schmiedehausen wrote:
>> > Daniel Rall <dl...@finemaltcoding.com> writes:
>> >
>> >
>> >>EmailService is basically a copy of VelocityService, but we needed a
>> >>different configuration. I'm hoping that this is something that an
>> >>Avalon container can help with.
>> >
>> >
>> > Can you describe what this does in difference to the
>> Velocity Service?
>>
>> Scarab's EmailService is functionally equivalent to
>> VelocityService. It
>> was created because we needed a separate instance of Velocity's
>> RuntimeInstance which uses a separate configuration.
>> EmailService was
>> created so that that instance would be configured and fired up by
>> Fulcrum initialization (i.e. lifecycle managed). Since
>> VelocityService
>> uses the singleton pattern and a separate configuration was
>> need, it was
>> impossible to use...thus my allusion to Avalon.
>>
>> - Dan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
Re: Need to deprecate services in T2.3?
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Henning P. Schmiedehausen wrote:
> Daniel Rall <dl...@finemaltcoding.com> writes:
>
> Hi,
>
> as far as I can understand, Velocity nowadays can be instantiated
> multiple times, no?
Correct, one can instantiate as many RuntimeInstance instances as they
have RAM for.
> But I understand that the current Velocity Service cannot be used with
> different configurations.
Correct, due to limitations in Fulcrum's service broker.
TurbineVelocityService itself uses an instance of VelocityEngine, a
wrapper class for a RuntimeInstance. If I could configure multiple
instances of TurbineVelocityService which were addressable by different
names in TR.props, there would be no reason for Scarab's EmailService.
> This actually poses an interesting question: Shall the avalonized
> services have the "singleton" lifecycle pattern just as our services
> or should it be possible to request components multiple times creating
> multiple instances (and running into possible trouble).
I dislike limiting Fulcrum to instantiating services only using the
singleton pattern. I agree that it should be a supported mode of
operation, but should also have the ability to instantiate multiple
instances of a single service with differenent configuration addressable
via different service name.
>>Henning P. Schmiedehausen wrote:
>>
>>>Daniel Rall <dl...@finemaltcoding.com> writes:
>>>
>>>>EmailService is basically a copy of VelocityService, but we needed a
>>>>different configuration. I'm hoping that this is something that an
>>>>Avalon container can help with.
>>>
>>>
>>>Can you describe what this does in difference to the Velocity Service?
>
>>Scarab's EmailService is functionally equivalent to VelocityService. It
>>was created because we needed a separate instance of Velocity's
>>RuntimeInstance which uses a separate configuration. EmailService was
>>created so that that instance would be configured and fired up by
>>Fulcrum initialization (i.e. lifecycle managed). Since VelocityService
>>uses the singleton pattern and a separate configuration was need, it was
>>impossible to use...thus my allusion to Avalon.
drop the singleton pattern (was Re: Need to deprecate services in T2.3?)
Posted by Eric Dobbs <er...@dobbse.net>.
On Tuesday, September 9, 2003, at 10:06 AM, Henning P. Schmiedehausen
wrote:
> This actually poses an interesting question: Shall the avalonized
> services have the "singleton" lifecycle pattern just as our services
> or should it be possible to request components multiple times creating
> multiple instances (and running into possible trouble).
My take is this:
Singleton pattern is basically an object version of global
variables. Same goes for static methods, only less object like.
There are vanishingly few cases where singleton is really
necessary or appropriate. There are cases, and there may even
be some among the turbine/fulcrum services, but I would prefer
to see the singleton pattern dropped while moving to Avalon. In
fact, this is one of the benefits of making that move. It will
probably expose some assumptions, but the code will be better
for getting away from singletons.
Having said that, I still don't have much time to offer to
help. So if no one volunteers to bite that particular bullet,
I won't complain about it too loudly. ;-)
-Eric
Re: Need to deprecate services in T2.3?
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
Daniel Rall <dl...@finemaltcoding.com> writes:
Hi,
as far as I can understand, Velocity nowadays can be instantiated
multiple times, no?
But I understand that the current Velocity Service cannot be used with
different configurations.
This actually poses an interesting question: Shall the avalonized
services have the "singleton" lifecycle pattern just as our services
or should it be possible to request components multiple times creating
multiple instances (and running into possible trouble).
Regards
Henning
>Henning P. Schmiedehausen wrote:
>> Daniel Rall <dl...@finemaltcoding.com> writes:
>>
>>
>>>EmailService is basically a copy of VelocityService, but we needed a
>>>different configuration. I'm hoping that this is something that an
>>>Avalon container can help with.
>>
>>
>> Can you describe what this does in difference to the Velocity Service?
>Scarab's EmailService is functionally equivalent to VelocityService. It
>was created because we needed a separate instance of Velocity's
>RuntimeInstance which uses a separate configuration. EmailService was
>created so that that instance would be configured and fired up by
>Fulcrum initialization (i.e. lifecycle managed). Since VelocityService
>uses the singleton pattern and a separate configuration was need, it was
>impossible to use...thus my allusion to Avalon.
> - Dan
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
RE: Need to deprecate services in T2.3?
Posted by Eric Pugh <ep...@upstate.com>.
Peter,
I am finally closing in on getting the fulcrum site to build cleanly..
Since you have experience, do you want to take a whack at porting the
fileUpload service to an "avalon" component. It is pretty much a matter of
cutting and pasting code and providing a unit test.
I am not currently subscribed to commons, but I will, and try and give it a
nudge. I would recommend a followup post. Maybe if commons doesn't really
seize on it, then maybe we can get the code as clean as possible, and add it
into Fulcrum? Especially if we can get it setup with good unit tests etc..
Also, since you seem to be an avid user of the Cache service, I would
appreciate any review you could give of the fulcrum version. If you have
some good sample code, that would be great!
eric Pugh
> -----Original Message-----
> From: Peter Courcoux [mailto:peter@courcoux.biz]
> Sent: Monday, September 08, 2003 4:09 PM
> To: EPugh@upstate.com; Turbine Developers List
> Subject: RE: Need to deprecate services in T2.3?
>
>
> Eric,
>
> I recall that you kindly looked over my proposals for Upload Progress
> Reporting.
>
> I submitted my code to commons-dev on 27th June but it has not made it
> into cvs yet!
>
> Henning suggested that Upload Progress Reporting may be a pluggable
> option and I had in mind an Avalon component for this.
>
> I'd be happy to look at creating an avalonized fileupload component
> with/without progress reporting but was waiting for commons. The
> progress reporting code uses the TurbineGlobalCacheService
> and I will be
> happy to look at an avalonized cache service at the same time.
>
> A couple of my apps also use the cache service for other things, like
> caching search results so that the user can revisit them.
>
> I would be grateful if you (and anyone else who is interested in file
> upload progress reporting) could lobby for my commons-fileupload patch
> to be reviewed.
>
> Regards,
>
> Peter
>
>
>
> On Mon, 2003-09-08 at 13:01, Eric Pugh wrote:
> > Daniel,
> >
> > I'll glue all my responses together to this one email!
> >
> > When I said Avalon service, I did mean Avalon Container.
> But a container
> > that could be loaded by Turbine, ergo, an Avalon Service..
> I guess we all
> > need to agree on semantics! But yes, it seems like Turbine
> 3.0 doesn't have
> > an embedded Avalon container at all. Therefore, i'm not
> too sure where to
> > start in updating Scarab.
> >
> > Also, if there is an Avalon facade for
> commons-configuration, could you
> > provide a pointer? I would love to see that, as I think
> that is something
> > that would speed the migration to Avalonized components.
> If we can avoid
> > polluting the Avalon components with an "old" init method
> using properties
> > and a "standard" init method using your standard Avalon
> configuration
> > object, that would be great! And I think a
> commons-configuration facade is
> > the way to do it. Also would allow you to pull
> configuration from many
> > different places, versus just an xml file!
> >
> > As far as the components go, I am slowly managing to update
> the fulcrum web
> > site. All the components use the best of either Fulcrum or
> Turbine 2.3,
> > depending on what seemed newer/better. They all also have
> some sort of unit
> > test. However, not all of them are done yet, but I wanted
> to get some of
> > them actually in use before finishing the rest :-). Both Intake and
> > FileUpload should be relatively straightforward. As far as updating
> > GlobalCacheService, not sure who uses it, but maybe leaving
> it alone is
> > best.
>
>
> >
> > As far as the scheduler service goes, it seems like
> everybody is in favor of
> > dumping it, and I am too. However, i am waiting for
> someone to submit a
> > good Quartz based scheduler and some docs. There is a
> quartz scheduler for
> > Plexus that someone could look at. So, as soon as the fabled Quartz
> > scheduler is committed, I am up for deprecating the
> scheduler service and
> > removing it in 2.5.
> >
> > As I said in my post to Scarab, I think localization is a
> nice easy place to
> > start, and I'll try and get it done in T2.4 as a learning
> experience.
> >
> > Eric Pugh
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
> --
> Peter Courcoux <pe...@courcoux.biz>
RE: Need to deprecate services in T2.3?
Posted by Peter Courcoux <pe...@courcoux.biz>.
Eric,
I recall that you kindly looked over my proposals for Upload Progress
Reporting.
I submitted my code to commons-dev on 27th June but it has not made it
into cvs yet!
Henning suggested that Upload Progress Reporting may be a pluggable
option and I had in mind an Avalon component for this.
I'd be happy to look at creating an avalonized fileupload component
with/without progress reporting but was waiting for commons. The
progress reporting code uses the TurbineGlobalCacheService and I will be
happy to look at an avalonized cache service at the same time.
A couple of my apps also use the cache service for other things, like
caching search results so that the user can revisit them.
I would be grateful if you (and anyone else who is interested in file
upload progress reporting) could lobby for my commons-fileupload patch
to be reviewed.
Regards,
Peter
On Mon, 2003-09-08 at 13:01, Eric Pugh wrote:
> Daniel,
>
> I'll glue all my responses together to this one email!
>
> When I said Avalon service, I did mean Avalon Container. But a container
> that could be loaded by Turbine, ergo, an Avalon Service.. I guess we all
> need to agree on semantics! But yes, it seems like Turbine 3.0 doesn't have
> an embedded Avalon container at all. Therefore, i'm not too sure where to
> start in updating Scarab.
>
> Also, if there is an Avalon facade for commons-configuration, could you
> provide a pointer? I would love to see that, as I think that is something
> that would speed the migration to Avalonized components. If we can avoid
> polluting the Avalon components with an "old" init method using properties
> and a "standard" init method using your standard Avalon configuration
> object, that would be great! And I think a commons-configuration facade is
> the way to do it. Also would allow you to pull configuration from many
> different places, versus just an xml file!
>
> As far as the components go, I am slowly managing to update the fulcrum web
> site. All the components use the best of either Fulcrum or Turbine 2.3,
> depending on what seemed newer/better. They all also have some sort of unit
> test. However, not all of them are done yet, but I wanted to get some of
> them actually in use before finishing the rest :-). Both Intake and
> FileUpload should be relatively straightforward. As far as updating
> GlobalCacheService, not sure who uses it, but maybe leaving it alone is
> best.
>
> As far as the scheduler service goes, it seems like everybody is in favor of
> dumping it, and I am too. However, i am waiting for someone to submit a
> good Quartz based scheduler and some docs. There is a quartz scheduler for
> Plexus that someone could look at. So, as soon as the fabled Quartz
> scheduler is committed, I am up for deprecating the scheduler service and
> removing it in 2.5.
>
> As I said in my post to Scarab, I think localization is a nice easy place to
> start, and I'll try and get it done in T2.4 as a learning experience.
>
> Eric Pugh
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
--
Peter Courcoux <pe...@courcoux.biz>
Re: Compiling 2.3
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"oron ogdan" <or...@netada.co.uk> writes:
>Hi
>Trying to compile 2.3 from sources, maven looks for javamail-1.3.1.jar which
>it can't find in ibiblio. Where can I get it ? is that somewhere in the
>1.3.1 FCS suns distributes ? there are several jars in there, non look like
>the right one.
get the sun one, rename it to javamail-1.3.1.jar
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!"
-- AOL CD when played backwards (User Friendly - 200-10-15)
Compiling 2.3
Posted by oron ogdan <or...@netada.co.uk>.
Hi
Trying to compile 2.3 from sources, maven looks for javamail-1.3.1.jar which
it can't find in ibiblio. Where can I get it ? is that somewhere in the
1.3.1 FCS suns distributes ? there are several jars in there, non look like
the right one.
BR
Oron
http://netada.co.uk
RE: Need to deprecate services in T2.3?
Posted by Eric Pugh <ep...@upstate.com>.
Daniel,
I'll glue all my responses together to this one email!
When I said Avalon service, I did mean Avalon Container. But a container
that could be loaded by Turbine, ergo, an Avalon Service.. I guess we all
need to agree on semantics! But yes, it seems like Turbine 3.0 doesn't have
an embedded Avalon container at all. Therefore, i'm not too sure where to
start in updating Scarab.
Also, if there is an Avalon facade for commons-configuration, could you
provide a pointer? I would love to see that, as I think that is something
that would speed the migration to Avalonized components. If we can avoid
polluting the Avalon components with an "old" init method using properties
and a "standard" init method using your standard Avalon configuration
object, that would be great! And I think a commons-configuration facade is
the way to do it. Also would allow you to pull configuration from many
different places, versus just an xml file!
As far as the components go, I am slowly managing to update the fulcrum web
site. All the components use the best of either Fulcrum or Turbine 2.3,
depending on what seemed newer/better. They all also have some sort of unit
test. However, not all of them are done yet, but I wanted to get some of
them actually in use before finishing the rest :-). Both Intake and
FileUpload should be relatively straightforward. As far as updating
GlobalCacheService, not sure who uses it, but maybe leaving it alone is
best.
As far as the scheduler service goes, it seems like everybody is in favor of
dumping it, and I am too. However, i am waiting for someone to submit a
good Quartz based scheduler and some docs. There is a quartz scheduler for
Plexus that someone could look at. So, as soon as the fabled Quartz
scheduler is committed, I am up for deprecating the scheduler service and
removing it in 2.5.
As I said in my post to Scarab, I think localization is a nice easy place to
start, and I'll try and get it done in T2.4 as a learning experience.
Eric Pugh
Re: Need to deprecate services in T2.3?
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Eric Pugh wrote:
> Daniel,
>
> Did my email about updating Scarab go through.. I was expecting a flurry of
> responses, ranging from great, to , why did you mess with fulcrum.. But
> instead, silence... I guess it's golden?
[hoping it's the one I'm about to reply to]
> I'm happy to try and help update Scarab, but until an Avalon service is
> available, I don't think I can do much. And I am too much in fear of
> Turbine 3.0 to try and port it over...
I don't follow the reference to "an Avalon service"; do you mean a
container?
> I may try next week to start updating T2.4 to use the new fulcrum, and that
> might help on the learning curve for Scarab...
Okay.
RE: Need to deprecate services in T2.3?
Posted by Eric Pugh <ep...@upstate.com>.
Daniel,
Did my email about updating Scarab go through.. I was expecting a flurry of
responses, ranging from great, to , why did you mess with fulcrum.. But
instead, silence... I guess it's golden?
I'm happy to try and help update Scarab, but until an Avalon service is
available, I don't think I can do much. And I am too much in fear of
Turbine 3.0 to try and port it over...
I may try next week to start updating T2.4 to use the new fulcrum, and that
might help on the learning curve for Scarab...
Eric Pugh
> -----Original Message-----
> From: Daniel Rall [mailto:dlr@finemaltcoding.com]
> Sent: Friday, September 05, 2003 5:09 AM
> To: Turbine Developers List
> Subject: Re: Need to deprecate services in T2.3?
>
>
> Henning P. Schmiedehausen wrote:
> > Daniel Rall <dl...@finemaltcoding.com> writes:
> >
> >
> >>EmailService is basically a copy of VelocityService, but we needed a
> >>different configuration. I'm hoping that this is something that an
> >>Avalon container can help with.
> >
> >
> > Can you describe what this does in difference to the
> Velocity Service?
>
> Scarab's EmailService is functionally equivalent to
> VelocityService. It
> was created because we needed a separate instance of Velocity's
> RuntimeInstance which uses a separate configuration.
> EmailService was
> created so that that instance would be configured and fired up by
> Fulcrum initialization (i.e. lifecycle managed). Since
> VelocityService
> uses the singleton pattern and a separate configuration was
> need, it was
> impossible to use...thus my allusion to Avalon.
>
> - Dan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org