On Tue, Jul 1, 2014 at 5:48 PM, Anuruddha Premalal <[email protected]> wrote:
> Hi All, > > Following is the problem-solution description regards to jira APPFAC-2252 > <https://wso2.org/jira/browse/APPFAC-2252> > > *Problem :* > > AppServer tenant get unloaded when there is no activity for 30mins. When a > user deploy an app to this unloaded tenant, it will load and deploy all > previously deployed apps; current implementation use catalina > LifecycleListner and it captures these redeployment events and triggers the > notifications. > > *Solution :* > > Send the artifact md5sum with the notification to the Appfactory. > Appfactory will validate the md5 and push the wall message accordingly. > How about only publishing the events from a tenant after only if the tenant is completely loaded(you can detect this status by checking tenantConfigCtx.getProperty(MultitenantConstants.LAST_ACCESSED)[0] ).We can filter out the deployment events that are happening due to tenant loading using this method. > > > Regards, > -- > *Anuruddha Premalal* > Software Eng. | WSO2 Inc. > Mobile : +94710461070 > Web site : www.regilandvalley.com > > "Advances of technology should not leave behind the developing world" > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > [0] long lastAccessedTime =TenantAxisUtils.getLastAccessed(tenantDomain, ServiceHolder.getInstance() .getConfigContextService().getServerConfigContext()); if(lastAccessedTime!=-1){ log.info("[sendNotification] Tenant : "+tenantDomain+" appid : "+appId+" msg : "+msg); }else { log.info("[sendNotification] ignoring..........tenant is not loaded " ); } -- ajanthan -- Ajanthan Balachandiran Senior Software Engineer; Solutions Technologies Team ;WSO2, Inc.; http://wso2.com/ email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497 blog: http://bkayts.blogspot.com/ Lean . Enterprise . Middleware
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
