axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: [Axis] Load Web Service on Startup
Date Fri, 28 Jul 2006 06:17:49 GMT
yes if you deploy the service in application scope , o.w when it get the
first request.

Davanum Srinivas wrote:

> Deepal,
>
> The question is: Do we call init(ServiceContext) when tomcat starts up
> OR when we get the first request for that service.
>
> People want to do the latter, to avoid taking a hit (slow-ness) on the
> first request.
>
> thanks,
> dims
>
> On 7/28/06, Deepal Jayasinghe <deepal@opensource.lk> wrote:
>
>> In Axis2
>>
>> adding following method to serviceImpl class you can achieve you goal,
>> so if you serviceimpl class look like ;
>>
>> public class Myservice{
>>
>> public void init(ServiceContext sc){
>> // write initialization code here
>> }
>>
>> }
>>
>>
>>
>>
>> Patel, Ronak (US SSA) wrote:
>>
>> > Hello All,
>> >
>> > I am interested in finding out how I can force Apache Axis to load and
>> > run my Web Service (by calling it's init() method) when the Web Server
>> > starts.
>> >
>> > Is there a configuration parameter that I need to set somewhere?
>> >
>> > I am interested in finding this out in both Axis2 and Axis1.x.
>> >
>> > Any help would be greatly appreciated.
>> >
>> > Ronak Patel
>> >
>> > Software Engineer
>> >
>> > BAE Systems CNIR
>> >
>> > 450 Pulaski Road
>> >
>> > Greenlawn, NY 11740
>> >
>> > (631) 262 - 8230
>> >
>> > ronak.patel@baesystems.com <mailto:ronak.patel@baesystems.com>
>> >
>>
>> -- 
>> Thanks,
>> Deepal
>> ................................................................
>> ~Future is Open~
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



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


Mime
View raw message