[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1366) Make it easier to get view id from EmbeddedCacheManager
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Fri Sep 2 07:07:26 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625972#comment-12625972 ]
Galder Zamarreño commented on ISPN-1366:
----------------------------------------
With the current API, this is actually tricky. You either:
- Use reflection to get hold of global component registry.
- Or go looking around for a cache that's clustered whose RPCManager is not null, and then retrieve the transport through that.
> Make it easier to get view id from EmbeddedCacheManager
> -------------------------------------------------------
>
> Key: ISPN-1366
> URL: https://issues.jboss.org/browse/ISPN-1366
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core API, RPC
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 6.0.0.FINAL
>
>
> Getting the view ID from a cache manager is not very straightforward. This is located in Transport interface but this is not directly accessible EmbeddedCacheManager. At first glance, the only possible way to do it is by getting a reference to a cache, then getting the RPCManager from it and the transport associated with it. That's of course assuming the cache is clustered, otherwise it won't work.
> I'checking for other workarounds.
--
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