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 Yan Liu <ci...@yahoo.com> on 2009/02/12 05:25:06 UTC
hot deployment and 'undeployment'
Hi,
Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
automatic service deployment module for our software system using hot
deployment. I have two questions, though:
1. is there documentation on programmatic way for hot deployment? I
looked at
http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/ ,
but prefer a complete example or tutorial
2. if i delete the .aar in axis2's service repository, does axis2 detect
that the service is gone, then update the list of services? If so, can
it be considered "hot undeployment"? If so, then "hot update" can be
done by hot deployment plus hot undeployment with a predefined interval
in axis2 config
Thanks,
Ian
Re: hot deployment and 'undeployment'
Posted by Afkham Azeez <af...@gmail.com>.
Adding a handler may not work. What if the request has passed that
handler and soon after that the service is undeployed?
Azeez
On Fri, Feb 13, 2009 at 2:26 AM, Yan Liu <ci...@yahoo.com> wrote:
> So what if we put a handler there to disable all requests for the service
> being removed (or already removed)? the handler could be triggered by a
> "undeploy" action.
>
> I think it is more complicated if we consider the inconsistency among axis2
> listener, memory allocated, dynamically loaded libraries, etc. But if hot
> deployment is provided, it is natural to pair with a hot undeployment, if
> not 'hot update'. To think more, if we list scenarios that require hot
> deployment, I think most of them would love to have hot undeployment, too.
>
> I'd like to see such a feature available to users, even restrictions need to
> be applied (e.g., version and library compatibility)
>
> Thanks,
> Yan
>
> --- On Thu, 2/12/09, keith chapman <ke...@gmail.com> wrote:
>
> From: keith chapman <ke...@gmail.com>
> Subject: Re: hot deployment and 'undeployment'
> To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
> Date: Thursday, February 12, 2009, 10:40 AM
>
> Yes removing a service at runtime could put request coming to that service
> in a Zombie state.
>
> Thanks,
> Keith.
>
> On Thu, Feb 12, 2009 at 8:34 PM, Yan Liu <ci...@yahoo.com> wrote:
>>
>> I know about "hot update". My question was: is "hot deployment + hot
>> undeployment = hot update"? Hot update is disabled by default because it
>> might leave axis2 in uncertain state and ongoing service data might be lost.
>> I guess the same thing happens when removing .aar manually. am i right?
>>
>> Thanks,
>> Yan
>>
>> --- On Thu, 2/12/09, Andreas Veithen <an...@gmail.com> wrote:
>>
>> From: Andreas Veithen <an...@gmail.com>
>> Subject: Re: hot deployment and 'undeployment'
>> To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
>> Date: Thursday, February 12, 2009, 2:59 AM
>>
>> Yan,
>>
>> Hot update/undeployment can be enabled by adding the following line to
>> your axis2.xml:
>>
>> <parameter
>> name="hotupdate">true</parameter>
>>
>> Regards,
>>
>> Andreas
>>
>> On Thu, Feb 12, 2009 at 05:25, Yan Liu <ci...@yahoo.com> wrote:
>>
>> > Hi,
>> >
>> > Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
>> > automatic service deployment module for our software system using hot
>> > deployment. I have two questions, though:
>>
>> > 1. is there documentation on programmatic way for hot deployment? I
>> > looked
>> > at http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/
>> ,
>>
>> but
>> > prefer a complete example or tutorial
>> > 2. if i delete the .aar in axis2's service repository, does axis2
>> detect
>> > that the service is gone, then update the list of services? If so, can
>> > it
>>
>> be
>> > considered "hot undeployment"? If so, then "hot
>> update" can be done by hot
>> > deployment plus hot undeployment with a predefined interval in axis2
>> config
>> >
>> >
>> Thanks,
>> > Ian
>> >
>> >
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
>
--
Thanks
Afkham Azeez
Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
Re: hot deployment and 'undeployment'
Posted by Yan Liu <ci...@yahoo.com>.
So what if we put a handler there to disable all requests for the service being removed (or already removed)? the handler could be triggered by a "undeploy" action.
I think it is more complicated if we consider the inconsistency among axis2 listener, memory allocated, dynamically loaded libraries, etc. But if hot deployment is provided, it is natural to pair with a hot undeployment, if not 'hot update'. To think more, if we list scenarios that require hot deployment, I think most of them would love to have hot undeployment, too.
I'd like to see such a feature available to users, even restrictions need to be applied (e.g., version and library compatibility)
Thanks,
Yan
--- On Thu, 2/12/09, keith chapman <ke...@gmail.com> wrote:
From: keith chapman <ke...@gmail.com>
Subject: Re: hot deployment and 'undeployment'
To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
Date: Thursday, February 12, 2009, 10:40 AM
Yes removing a service at runtime could put request coming to that service in a Zombie state.
Thanks,
Keith.
On Thu, Feb 12, 2009 at 8:34 PM, Yan Liu <ci...@yahoo.com> wrote:
I know about "hot update". My question was: is "hot deployment + hot undeployment = hot update"? Hot update is disabled by default because it might leave axis2 in uncertain state and ongoing service data might be lost. I guess the same thing happens when removing .aar manually. am i right?
Thanks,
Yan
--- On Thu, 2/12/09, Andreas Veithen <an...@gmail.com> wrote:
From: Andreas Veithen <an...@gmail.com>
Subject: Re: hot deployment and 'undeployment'
To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
Date: Thursday, February 12, 2009, 2:59 AM
Yan,
Hot update/undeployment can be enabled by adding the following line to
your axis2.xml:
<parameter
name="hotupdate">true</parameter>
Regards,
Andreas
On Thu, Feb 12, 2009 at 05:25, Yan Liu <ci...@yahoo.com> wrote:
> Hi,
>
> Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
> automatic service deployment module for our software system using hot
> deployment. I have two questions, though:
> 1. is there documentation on programmatic way for hot deployment? I looked
> at http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/ ,
but
> prefer a complete example or tutorial
> 2. if i delete the .aar in axis2's service repository, does axis2
detect
> that the service is gone, then update the list of services? If so, can it
be
> considered "hot undeployment"? If so, then "hot
update" can be done by hot
> deployment plus hot undeployment with a predefined interval in axis2
config
>
>
Thanks,
> Ian
>
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org
Re: hot deployment and 'undeployment'
Posted by keith chapman <ke...@gmail.com>.
Yes removing a service at runtime could put request coming to that service
in a Zombie state.
Thanks,
Keith.
On Thu, Feb 12, 2009 at 8:34 PM, Yan Liu <ci...@yahoo.com> wrote:
> I know about "hot update". My question was: is "hot deployment + hot
> undeployment = hot update"? Hot update is disabled by default because it
> might leave axis2 in uncertain state and ongoing service data might be lost.
> I guess the same thing happens when removing .aar manually. am i right?
>
> Thanks,
> Yan
>
> --- On *Thu, 2/12/09, Andreas Veithen <an...@gmail.com>* wrote:
>
> From: Andreas Veithen <an...@gmail.com>
> Subject: Re: hot deployment and 'undeployment'
> To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
> Date: Thursday, February 12, 2009, 2:59 AM
>
>
> Yan,
>
> Hot update/undeployment can be enabled by adding the following line to
> your axis2.xml:
>
> <parameter
> name="hotupdate">true</parameter>
>
> Regards,
>
> Andreas
>
> On Thu, Feb 12, 2009 at 05:25, Yan Liu <ci...@yahoo.com> wrote:
> > Hi,
> >
> > Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
> > automatic service deployment module for our software system using hot
> > deployment. I have two questions, though:
> > 1. is there documentation on programmatic way for hot deployment? I looked
> > at http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/ ,
> but
> > prefer a complete example or tutorial
> > 2. if i delete the .aar in axis2's service repository, does axis2
> detect
> > that the service is gone, then update the list of services? If so, can it
> be
> > considered "hot undeployment"? If so, then "hot
> update" can be done by hot
> > deployment plus hot undeployment with a predefined interval in axis2
> config
> >
> >
> Thanks,
> > Ian
> >
> >
>
>
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org
Re: hot deployment and 'undeployment'
Posted by Yan Liu <ci...@yahoo.com>.
I know about "hot update". My question was: is "hot deployment + hot undeployment = hot update"? Hot update is disabled by default because it might leave axis2 in uncertain state and ongoing service data might be lost. I guess the same thing happens when removing .aar manually. am i right?
Thanks,
Yan
--- On Thu, 2/12/09, Andreas Veithen <an...@gmail.com> wrote:
From: Andreas Veithen <an...@gmail.com>
Subject: Re: hot deployment and 'undeployment'
To: axis-user@ws.apache.org, cigi_yanliu@yahoo.com
Date: Thursday, February 12, 2009, 2:59 AM
Yan,
Hot update/undeployment can be enabled by adding the following line to
your axis2.xml:
<parameter name="hotupdate">true</parameter>
Regards,
Andreas
On Thu, Feb 12, 2009 at 05:25, Yan Liu <ci...@yahoo.com> wrote:
> Hi,
>
> Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
> automatic service deployment module for our software system using hot
> deployment. I have two questions, though:
> 1. is there documentation on programmatic way for hot deployment? I looked
> at http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/ ,
but
> prefer a complete example or tutorial
> 2. if i delete the .aar in axis2's service repository, does axis2
detect
> that the service is gone, then update the list of services? If so, can it
be
> considered "hot undeployment"? If so, then "hot
update" can be done by hot
> deployment plus hot undeployment with a predefined interval in axis2
config
>
> Thanks,
> Ian
>
>
Re: hot deployment and 'undeployment'
Posted by Andreas Veithen <an...@gmail.com>.
Yan,
Hot update/undeployment can be enabled by adding the following line to
your axis2.xml:
<parameter name="hotupdate">true</parameter>
Regards,
Andreas
On Thu, Feb 12, 2009 at 05:25, Yan Liu <ci...@yahoo.com> wrote:
> Hi,
>
> Hot deployment feature in Axis2 1.4.1 is great. I'd like to create an
> automatic service deployment module for our software system using hot
> deployment. I have two questions, though:
> 1. is there documentation on programmatic way for hot deployment? I looked
> at http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/ , but
> prefer a complete example or tutorial
> 2. if i delete the .aar in axis2's service repository, does axis2 detect
> that the service is gone, then update the list of services? If so, can it be
> considered "hot undeployment"? If so, then "hot update" can be done by hot
> deployment plus hot undeployment with a predefined interval in axis2 config
>
> Thanks,
> Ian
>
>