Hi All, We can implement an Axis2ConfigurationContextObserver and register it as an OSGI service to listen to the above events.
Thanks Azeez for the help. On Tue, Jul 15, 2014 at 7:51 AM, Anuruddha Premalal <[email protected]> wrote: > Hi, > > I need to perform a filtering based on following App server tenant states, > > * loading > * loaded > * unloading > * unloaded > > Can I use lastAccessedTime[1] to do it?. Or is there a better way to > listen to tenant life-cycle events? > > [1] long lastAccessedTime =TenantAxisUtils.getLastAccessed(tenantDomain, > ServiceHolder.getInstance() > > .getConfigContextService().getServerConfigContext()); > > > if(lastAccessedTime!=-1){ > log.info("tenant loaded"); > }else { > log.info("tenant is not loaded " ); > } > > Regards, > -- > *Anuruddha Premalal* > Software Eng. | WSO2 Inc. > Mobile : +94710461070 > Web site : www.regilandvalley.com > > "Advances of technology should not leave behind the developing world" > -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
