You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by David Winterfeldt <dw...@yahoo.com> on 2001/07/20 17:17:08 UTC

Struts Services

What is the status of having something to load a
service in Struts?  If it is going to be a while, I
would suggest at least adding something that could at
least handle initialization of resources that would
fit in with the future plans.  I was waiting for
something like this before I added the Validator so
there could be an example using the service loader to
initialize the Validator resources.

David


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Re[2]: Struts Services

Posted by Oleg V Alexeev <oa...@apache.org>.
Hello Ted,

Friday, July 20, 2001, 7:23:20 PM, you wrote:

TH> I believe Oleg committed a package to contrib, and is looking for help
TH> with sample code, general testing and documentation.

I have annual leave now and so... I work only for pleasure... 8)

TH> David Winterfeldt wrote:
>> 
>> What is the status of having something to load a
>> service in Struts?  If it is going to be a while, I
>> would suggest at least adding something that could at
>> least handle initialization of resources that would
>> fit in with the future plans.  I was waiting for
>> something like this before I added the Validator so
>> there could be an example using the service loader to
>> initialize the Validator resources.

 
TH> Oleg V Alexeev wrote:
>> 
>> Hello struts-dev,
>> 
>>   This night I commit to the struts contributions repository
>>   ServiceManager - support of pluggable extensions in struts. Package
>>   already contains one service - FactoryService. It based on
>>   my early struts extension - BeanFactory, and contains its code and
>>   two factories to support automatic bean creation.
>> 
>>   ServiceManager uses single struts-config.xml file to read
>>   configuration information and lets to services add its own rules to
>>   the digester to support additional config sections in
>>   struts-config.xml. Another words - ServiceManager uses 'live' Digester!
>> 
>>   Such trick allow to store all needed config info for all services in
>>   application in one file - struts-config.xml.
>> 
>>   P.S. I work under comments now and I believe that samples will be
>>        ready shortly.
>> 
>> --
>> Best regards,
>>  Oleg                          mailto:gonza@penza.net



-- 
Best regards,
 Oleg                            mailto:oalexeev@apache.org



Re[2]: Struts Services

Posted by Oleg V Alexeev <oa...@apache.org>.
Hello David,

Friday, July 20, 2001, 7:48:31 PM, you wrote:

DW> I thought this was going to be a core feature (or is
DW> it not ready for the core yet, Oleg?).  

Now it just core package... 8)
Without samples, doc, and testing...
Sample will ready shortly.

DW> David

DW> --- Ted Husted <hu...@apache.org> wrote:
>> I believe Oleg committed a package to contrib, and
>> is looking for help
>> with sample code, general testing and documentation.
>> 
>> 
>> David Winterfeldt wrote:
>> > 
>> > What is the status of having something to load a
>> > service in Struts?  If it is going to be a while,
>> I
>> > would suggest at least adding something that could
>> at
>> > least handle initialization of resources that
>> would
>> > fit in with the future plans.  I was waiting for
>> > something like this before I added the Validator
>> so
>> > there could be an example using the service loader
>> to
>> > initialize the Validator resources.
>> 
>>  
>> Oleg V Alexeev wrote:
>> > 
>> > Hello struts-dev,
>> > 
>> >   This night I commit to the struts contributions
>> repository
>> >   ServiceManager - support of pluggable extensions
>> in struts. Package
>> >   already contains one service - FactoryService.
>> It based on
>> >   my early struts extension - BeanFactory, and
>> contains its code and
>> >   two factories to support automatic bean
>> creation.
>> > 
>> >   ServiceManager uses single struts-config.xml
>> file to read
>> >   configuration information and lets to services
>> add its own rules to
>> >   the digester to support additional config
>> sections in
>> >   struts-config.xml. Another words -
>> ServiceManager uses 'live' Digester!
>> > 
>> >   Such trick allow to store all needed config info
>> for all services in
>> >   application in one file - struts-config.xml.
>> > 
>> >   P.S. I work under comments now and I believe
>> that samples will be
>> >        ready shortly.
>> > 
>> > --
>> > Best regards,
>> >  Oleg                         
DW> mailto:gonza@penza.net


DW> __________________________________________________
DW> Do You Yahoo!?
DW> Get personalized email addresses from Yahoo! Mail
DW> http://personal.mail.yahoo.com/



-- 
Best regards,
 Oleg                            mailto:oalexeev@apache.org



Re: Struts Services

Posted by Ted Husted <hu...@apache.org>.
One way to find out if it were ready to be a core feature would be to
see if it did the job for the Validator package, and any others that
were asking about services support ... so you tell us ;-)

David Winterfeldt wrote:
> 
> I thought this was going to be a core feature (or is
> it not ready for the core yet, Oleg?).
> 
> David

Re: Struts Services

Posted by David Winterfeldt <dw...@yahoo.com>.
I thought this was going to be a core feature (or is
it not ready for the core yet, Oleg?).  

David

--- Ted Husted <hu...@apache.org> wrote:
> I believe Oleg committed a package to contrib, and
> is looking for help
> with sample code, general testing and documentation.
> 
> 
> David Winterfeldt wrote:
> > 
> > What is the status of having something to load a
> > service in Struts?  If it is going to be a while,
> I
> > would suggest at least adding something that could
> at
> > least handle initialization of resources that
> would
> > fit in with the future plans.  I was waiting for
> > something like this before I added the Validator
> so
> > there could be an example using the service loader
> to
> > initialize the Validator resources.
> 
>  
> Oleg V Alexeev wrote:
> > 
> > Hello struts-dev,
> > 
> >   This night I commit to the struts contributions
> repository
> >   ServiceManager - support of pluggable extensions
> in struts. Package
> >   already contains one service - FactoryService.
> It based on
> >   my early struts extension - BeanFactory, and
> contains its code and
> >   two factories to support automatic bean
> creation.
> > 
> >   ServiceManager uses single struts-config.xml
> file to read
> >   configuration information and lets to services
> add its own rules to
> >   the digester to support additional config
> sections in
> >   struts-config.xml. Another words -
> ServiceManager uses 'live' Digester!
> > 
> >   Such trick allow to store all needed config info
> for all services in
> >   application in one file - struts-config.xml.
> > 
> >   P.S. I work under comments now and I believe
> that samples will be
> >        ready shortly.
> > 
> > --
> > Best regards,
> >  Oleg                         
mailto:gonza@penza.net


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Re: Struts Services

Posted by Ted Husted <hu...@apache.org>.
I believe Oleg committed a package to contrib, and is looking for help
with sample code, general testing and documentation. 

David Winterfeldt wrote:
> 
> What is the status of having something to load a
> service in Struts?  If it is going to be a while, I
> would suggest at least adding something that could at
> least handle initialization of resources that would
> fit in with the future plans.  I was waiting for
> something like this before I added the Validator so
> there could be an example using the service loader to
> initialize the Validator resources.

 
Oleg V Alexeev wrote:
> 
> Hello struts-dev,
> 
>   This night I commit to the struts contributions repository
>   ServiceManager - support of pluggable extensions in struts. Package
>   already contains one service - FactoryService. It based on
>   my early struts extension - BeanFactory, and contains its code and
>   two factories to support automatic bean creation.
> 
>   ServiceManager uses single struts-config.xml file to read
>   configuration information and lets to services add its own rules to
>   the digester to support additional config sections in
>   struts-config.xml. Another words - ServiceManager uses 'live' Digester!
> 
>   Such trick allow to store all needed config info for all services in
>   application in one file - struts-config.xml.
> 
>   P.S. I work under comments now and I believe that samples will be
>        ready shortly.
> 
> --
> Best regards,
>  Oleg                          mailto:gonza@penza.net

Re: Struts Services

Posted by Oleg V Alexeev <oa...@apache.org>.
Hello David,

Friday, July 20, 2001, 7:17:08 PM, you wrote:

DW> What is the status of having something to load a
DW> service in Struts?  If it is going to be a while, I
DW> would suggest at least adding something that could at
DW> least handle initialization of resources that would
DW> fit in with the future plans.  I was waiting for
DW> something like this before I added the Validator so
DW> there could be an example using the service loader to
DW> initialize the Validator resources.

Service base class contains initDigester(), init() and destroy()
methods. ServiceManager call init() and destroy() for every service
and call initDigester() if service config in struts-config contains
useDigester attribute. So each Service can implement initDigester()
method to read config from single application config - struts-config.
Of course, Service developer can use its own config file and not use
common config store.

-- 
Best regards,
 Oleg                            mailto:oalexeev@apache.org