[infinispan-issues] [JBoss JIRA] Updated: (ISPN-1157) StartupListener overwrites ManagerInstance.instance even if it's set already by container.
Trustin Lee (JIRA)
jira-events at lists.jboss.org
Tue Jun 7 06:23:59 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trustin Lee updated ISPN-1157:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/359
> StartupListener overwrites ManagerInstance.instance even if it's set already by container.
> ------------------------------------------------------------------------------------------
>
> Key: ISPN-1157
> URL: https://issues.jboss.org/browse/ISPN-1157
> Project: Infinispan
> Issue Type: Bug
> Components: Cache Server
> Affects Versions: 4.2.1.FINAL
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Fix For: 4.2.2.BETA1, 4.2.2.FINAL, 5.0.0.CR5, 5.0.0.FINAL
>
>
> Currently, the REST server looks up the existing EmbeddedCacheManager provided by JBossAS 6 in StartupListener.getMcInjectedCacheManager().
> This unfortunately does not work in JBossAS 7 because it switched to a new controller. To get the provided EmbeddedCacheManager, a .WAR must include a class that implements org.jboss.msc.service.ServiceActivator, and we need to get the cache manager there. Here are some examples:
> http://j.mp/jNX2gr
> http://j.mp/kleOLi
> The good news is that the ServiceActivator is invoked before the web application goes on-line. The bad news is that it is reset to null by StartupListener.getMcInjectedCacheManager().
> The fix to this problem is to modify StartupListener so that it does not update ManagerInstance.instance if set already.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list