Hi,

Application is parsed and  handleApplicationCreated is called. We need to
improve this to use applicationContext which is created at application
created time


   1. ApplicationContext applicationContext =
RegistryManager.getInstance().getApplicationContext(applicationId);
   2.             if (applicationContext == null) {
   3.                 throw new RuntimeException("Application not
found: " + applicationId);
   4.             }
   5.
   6.             ApplicationParser applicationParser = new
DefaultApplicationParser();
   7.             Application application =
applicationParser.parse(applicationContext);
   8.
ApplicationBuilder.handleApplicationCreated(application,
applicationParser.getApplicationClusterContexts());


On Sun, Dec 21, 2014 at 12:22 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
> Hi,
>
> Sorry for the buzz, application is parsed if not exists in
> applicationContext.
>
> On Sun, Dec 21, 2014 at 12:00 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>> Hi Imesh, Reka,
>>
>> Just wanted to know why application is parsed at
>>     1) application creation time
>>     2) application deployment time
>>
>> Currently token is created at application parsing time(ideally should
>> not), thus token creating occurred twice.
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Reply via email to