Yes we could persist the parsed application and re-use it in the deployment process. We could do this improvement. BTW why do we see a list of user login statements in the log during the application parse process?
Thanks On Sun, Dec 21, 2014 at 12:54 PM, Udara Liyanage <ud...@wso2.com> wrote: > 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 > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos