Hi
@Pirinthapan : Great findings.
IMO if we are sticking to the plan that we are going to promote uploadable
applications to production, then we need to wait until application creation
is over and then promote them to production. We might be able to run
Application Even Listener with ordered to run last to do this task.
@Dimuthu, Janaka : WDYT?

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Sun, Oct 26, 2014 at 3:04 PM, Pirinthapan Mahendran <[email protected]
> wrote:

> Hi All,
>
> In AppFactory when we upload an existing artifact, it should be directly
> deployed to production stage.
> But in the current implementation sometimes it is getting deployed to
> development stage and sometimes it is getting deployed to production stage.
>
> According to my understanding the reason for this is, we are creating and
> promoting the application within the single method "uploadExistingApplication"
> in [1]. In this method first we are creating the application using the
> uploaded artifact. Once the application is created build is triggered
> automatically in a background thread. At the same time we are calling the
> bpel service to promote the application. So building and promoting are
> happening at the same time. This will give some unpredictable results.
>
> To overcome this issue we need to wait until all the application creation,
> initial build and initial deployment processes are finished. After that we
> need to promote the application. Once the promotion process is finished we
> need to deploy the application in the production stage.
>
> Kindly expect your ideas on this issue.
>
> 1. appmgt/src/site/blocks/application/add/ajax/add.jag
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to