【发布时间】:2016-10-01 12:34:03
【问题描述】:
我正在尝试从与不同 WebLogic 集群保持相同 Coherence 集群的应用层(部署在应用层)访问 Coherence 12.2.1 的缓存(部署在数据层)。
甲骨文声明:
A component-scoped JNDI tree can be used in EJBs, servlets, or JSPs to reference the NamedCache.
To use a component-scoped JNDI lookup, define a resource-ref of type com.tangosol.net.NamedCache in either the web.xml or ejb-jar.xml file. Example 3-2 illustrates a <resource-ref> stanza that identifies myCache as the NamedCache.
在https://docs.oracle.com/cd/E24329_01/web.1211/e24442/coh_wls.htm#COHWL117
我开发了一个 Coherence 应用程序并将其部署到支持本地存储的 WebLogic 服务器(coherence 托管服务器)中。我使用 Application Lifecycle Listener 来访问和初始化缓存,它工作正常。
我发现缓存是用VisualVM填充到Coherence缓存服务器中的,请看附件
但不幸的是,我在我的 WebLogic 托管服务器 JNDI 树中找不到任何关于缓存的信息,请查找附件。
我试图找到一种方法来启用 Coherence 缓存服务器(它已集成到 WebLogic 12c)支持 JNDI 查找。
我发现了这样的东西:
<cache-config xmlns:jndi="class://com.oracle.coherence.environment.extensible.namespaces.JNDINamespaceContentHandler">
...
</cache-config>
但不幸的是,com.oracle.coherence.environment.extensible.namespaces.JNDINamespaceContentHandler 已从 WebLogic 12c 中删除。这意味着无法在 Coherence 12cR2 中启用 Coherence 数据缓存 JNDI 名称配置。
请给点建议!!
【问题讨论】:
标签: oracle caching jndi lookup weblogic12c