You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2006/09/12 16:40:02 UTC

[Axis2] eager service initialization

Hi all,

some time ago somebody raised an issue about eager service
initialization (i.e. at system startup). Is there any news about it?

Thanks,
Michele

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Thanks Robert. I'm going to download the last nightly ;)

Michele

robert lazarski wrote:
> Its part of the nightlies under the Service.startUp() interface ...
> just have your service implement it .
> 
> Robert
> 
> On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> Hi all,
>>
>> some time ago somebody raised an issue about eager service
>> initialization (i.e. at system startup). Is there any news about it?
>>
>> Thanks,
>> Michele
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Yes, now it works. Thanks.


Just a question: if the service is deployed in application scope it does
 not make any difference to implement the init or the startUp, does it
(but of course with the startUp you're sure the initialization always
happens, regardless of the service scope ;))?


Michele

robert lazarski wrote:
> Try putting this your your service.xml , right under ServiceClass -
> 
> <parameter name="load-on-startup" locked="false">true</parameter>
> 
> Forgot about that ... will document this for the upcomming release .
> 
> Robert
> 
> On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> Robert,
>>
>> I did it: only the init() method is called at startup (if the service is
>> in application scope), the startUp() is never called.
>>
>>
>> Michele
>>
>> robert lazarski wrote:
>> > Hmm ... I just tested this yesterday ;-) . Please check your
>> > environment and follow the instructions in the javadoc.
>> >
>> > Robert
>> >
>> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> >> Robert,
>> >>
>> >> unfortunately it does not work :(.
>> >> I've tried with a service deployed in application scope as well as
>> with
>> >> a service deployed in request scope, and I found out that the
>> startup is
>> >> never called!
>> >>
>> >> Michele
>> >>
>> >> robert lazarski wrote:
>> >> > Its part of the nightlies under the Service.startUp() interface ...
>> >> > just have your service implement it .
>> >> >
>> >> > Robert
>> >> >
>> >> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> >> >> Hi all,
>> >> >>
>> >> >> some time ago somebody raised an issue about eager service
>> >> >> initialization (i.e. at system startup). Is there any news about
>> it?
>> >> >>
>> >> >> Thanks,
>> >> >> Michele
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by robert lazarski <ro...@gmail.com>.
Try putting this your your service.xml , right under ServiceClass -

 <parameter name="load-on-startup" locked="false">true</parameter>

Forgot about that ... will document this for the upcomming release .

Robert

On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Robert,
>
> I did it: only the init() method is called at startup (if the service is
> in application scope), the startUp() is never called.
>
>
> Michele
>
> robert lazarski wrote:
> > Hmm ... I just tested this yesterday ;-) . Please check your
> > environment and follow the instructions in the javadoc.
> >
> > Robert
> >
> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> >> Robert,
> >>
> >> unfortunately it does not work :(.
> >> I've tried with a service deployed in application scope as well as with
> >> a service deployed in request scope, and I found out that the startup is
> >> never called!
> >>
> >> Michele
> >>
> >> robert lazarski wrote:
> >> > Its part of the nightlies under the Service.startUp() interface ...
> >> > just have your service implement it .
> >> >
> >> > Robert
> >> >
> >> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> >> >> Hi all,
> >> >>
> >> >> some time ago somebody raised an issue about eager service
> >> >> initialization (i.e. at system startup). Is there any news about it?
> >> >>
> >> >> Thanks,
> >> >> Michele
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Robert,

I did it: only the init() method is called at startup (if the service is
in application scope), the startUp() is never called.


Michele

robert lazarski wrote:
> Hmm ... I just tested this yesterday ;-) . Please check your
> environment and follow the instructions in the javadoc.
> 
> Robert
> 
> On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> Robert,
>>
>> unfortunately it does not work :(.
>> I've tried with a service deployed in application scope as well as with
>> a service deployed in request scope, and I found out that the startup is
>> never called!
>>
>> Michele
>>
>> robert lazarski wrote:
>> > Its part of the nightlies under the Service.startUp() interface ...
>> > just have your service implement it .
>> >
>> > Robert
>> >
>> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> >> Hi all,
>> >>
>> >> some time ago somebody raised an issue about eager service
>> >> initialization (i.e. at system startup). Is there any news about it?
>> >>
>> >> Thanks,
>> >> Michele
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by robert lazarski <ro...@gmail.com>.
Hmm ... I just tested this yesterday ;-) . Please check your
environment and follow the instructions in the javadoc.

Robert

On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Robert,
>
> unfortunately it does not work :(.
> I've tried with a service deployed in application scope as well as with
> a service deployed in request scope, and I found out that the startup is
> never called!
>
> Michele
>
> robert lazarski wrote:
> > Its part of the nightlies under the Service.startUp() interface ...
> > just have your service implement it .
> >
> > Robert
> >
> > On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> >> Hi all,
> >>
> >> some time ago somebody raised an issue about eager service
> >> initialization (i.e. at system startup). Is there any news about it?
> >>
> >> Thanks,
> >> Michele
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Robert,

unfortunately it does not work :(.
I've tried with a service deployed in application scope as well as with
a service deployed in request scope, and I found out that the startup is
never called!

Michele

robert lazarski wrote:
> Its part of the nightlies under the Service.startUp() interface ...
> just have your service implement it .
> 
> Robert
> 
> On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
>> Hi all,
>>
>> some time ago somebody raised an issue about eager service
>> initialization (i.e. at system startup). Is there any news about it?
>>
>> Thanks,
>> Michele
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] eager service initialization

Posted by robert lazarski <ro...@gmail.com>.
Its part of the nightlies under the Service.startUp() interface ...
just have your service implement it .

Robert

On 9/12/06, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Hi all,
>
> some time ago somebody raised an issue about eager service
> initialization (i.e. at system startup). Is there any news about it?
>
> Thanks,
> Michele
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org