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"
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev