首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Websphere空间绑定影响JNDI作用域解析顺序

Websphere空间绑定影响JNDI作用域解析顺序
EN

Stack Overflow用户
提问于 2012-08-07 08:16:18
回答 1查看 1.9K关注 0票数 1

情况如下:

我在WebSphereNetworkDeploymentv8.0.0.3上使用了一个应用程序,它使用两个队列--一个队列用于内部应用程序使用(发布者和使用者在同一个应用程序中),另一个队列被部署在单元内其他应用服务器上的其他模块使用。

因此,我在单元范围级别配置了第一个队列,在集群范围级别配置了第二个队列。

直到我添加了一个名为Space之前,一切都是正常的。之后,jndi对象集群范围内的jndi对象不再存在于dumpNameSpace.sh输出中。

与作用域的分辨率类似的接缝是通过存在一个名称空间绑定来修改的。这确实很奇怪,但我在WAS的两个不同安装上也有相同的行为。

感谢所有知道这一点的人。

更新

这是工作和不工作的jndi转储之间的区别。

代码语言:javascript
复制
--- clsdumpOk   2012-08-07 11:49:43.000000000 +0200
+++ clsdumpKo2  2012-08-07 11:49:59.000000000 +0200
@@ -454,28 +454,12 @@
 (top)/clusters/TestCluster/jdbc/modulobase
 (top)/clusters/TestCluster/jms
 (top)/clusters/TestCluster/jms/as
-(top)/clusters/TestCluster/jms/as/BatchRequest
-(top)/clusters/TestCluster/jms/as/BatchResponse
 (top)/clusters/TestCluster/jms/as/ciccio
-(top)/clusters/TestCluster/jms/as/FSCleaner
 (top)/clusters/TestCluster/jms/as/License
 (top)/clusters/TestCluster/jms/as/Mailer
-(top)/clusters/TestCluster/jms/as/Plans
-(top)/clusters/TestCluster/jms/as/RiaResponse
-(top)/clusters/TestCluster/jms/ConnectionFactory
-(top)/clusters/TestCluster/jms/pac
-(top)/clusters/TestCluster/jms/pac/as
-(top)/clusters/TestCluster/jms/pac/as/Events
 (top)/clusters/TestCluster/jms/queue
-(top)/clusters/TestCluster/jms/queue/batch-request
-(top)/clusters/TestCluster/jms/queue/batch-response
-(top)/clusters/TestCluster/jms/QueueConnectionFactory
-(top)/clusters/TestCluster/jms/queue/events
-(top)/clusters/TestCluster/jms/queue/filesystem-cleaner
 (top)/clusters/TestCluster/jms/queue/license
 (top)/clusters/TestCluster/jms/queue/mailer
-(top)/clusters/TestCluster/jms/queue/plans
-(top)/clusters/TestCluster/jms/TopicConnectionFactory
 (top)/clusters/TestCluster/jta
 (top)/clusters/TestCluster/jta/usertransaction
 (top)/clusters/TestCluster/SecurityServer
@@ -495,8 +479,10 @@
 (top)/clusters/TestCluster/url/casCfgFile
 (top)/clusters/TestCluster/UserRegistry
 (top)/clusters/TestCluster/wb25
-(top)/clusters/TestCluster/wb25/topic
-(top)/clusters/TestCluster/wb25/topic/ria-response
+(top)/clusters/TestCluster/wb25/conf
+(top)/clusters/TestCluster/wb25/conf/locking
+(top)/clusters/TestCluster/wb25/conf/locking/lockingEnabled
+(top)/clusters/TestCluster/wb25/conf/rootFolder
 (top)/clusters/TestCluster/wm
 (top)/clusters/TestCluster/wm/ard
 (top)/clusters/TestCluster/wm/default

正如您所看到的,一旦

+(top)/clusters/TestCluster/wb25/conf/locking/lockingEnabled

被添加

其余的都被移除了。真的很奇怪。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-08-13 02:49:42

WebSphere for Environment ->命名->名称空间绑定中的问题如下:如果您用命名: url/someVariable或泛型的->/someVar设置了一些JNDI节点

,而不是对其他对象使用相同的“东西”,比如: URL、JDBC或JMS

名称空间绑定将“某事”置于只读模式,而当WebSphere试图配置其他资源时,将失败。

在配置过程中,您无法发现这一点,因为只有在Application的第一次重新启动时,您才会得到它。

因此,在选择jndi中的名称时要小心。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11841804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档