Thanks Azeez, that did solve the issue.

On Tue, Mar 8, 2011 at 1:34 PM, Afkham Azeez <[email protected]> wrote:

> enable hotUpdate in your axis2.xml file, and if the timestamp of your files
> changed, Axis2 will redeploy it.
>
> Azeez
>
>
> On Mon, Mar 7, 2011 at 5:14 AM, aditya chitre <[email protected]>wrote:
>
>> Hi,
>>
>> I am working on dynamically deploying web services using Apache Axis2
>> Deployer class. The Apache server is not restarted when a change is made to
>> the service class file.
>> When I remove the service by deleting the class file from the axis2
>> location (from my program code) and add it back again (from my program
>> code), the undeploy() and the deploy() in my deployer class does not run.
>> The time interval between deleting the service class file and copying it
>> back again is very less. However, if I add a delay period of 10 seconds
>> between removing the class file and copying it back again, then everything
>> works fine.
>>
>> 1) Does this happen because Axis2 takes a lot of time to scan the web
>> service location for changes and because of it, do the undeploy() and
>> deploy() conflict with each other?
>>
>> 2) Is there any way of correcting this?
>>
>> Regards,
>> Aditya
>>
>
>
>
> --
> *Afkham Azeez*
> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
> *
> *
> *Member; Apache Software Foundation; 
> **http://www.apache.org/*<http://www.apache.org/>
> *
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org/>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>  *
> *
> *Lean . Enterprise . Middleware*
> *
> *
>
>

Reply via email to