IBM Support

Weblogic JNDI Names cannot be like A and A.0001

Troubleshooting


Problem

Weblogic JNDI Names cannot be like A and A.0001

Symptom

PART: Documentation 5.5 Platform
PRODUCT: Distributed Order Management
COMPONENT: Installation_Guide
OS: HP-UX - 11i
DATABASE: Oracle - 9.2.0.4
WEB SERVER: WebLogic - 8.1 SP1
WEB BROWSER: Internet Explorer - 6.0 sp1

If you try to put entry like

<JMSServer Name="MyJMSServer" Targets="sp2server">
<JMSQueue JNDIName="DefaultAgentQueue" Name="DefaultAgentQueue"/>
<JMSQueue JNDIName="Abhijitwithdot" Name="Abhijitwithdot"/>
<JMSQueue JNDIName="Abhijitwithdot.Queue" Name="Abhijitwithdot.Queue"/>
<JMSQueue JNDIName="Abhijitwithdot.onemore" Name="Abhijitwithdot.onemore"/>
<JMSQueue JNDIName="AbhijitJMSQueue" Name="AbhijitJMSQueue"/>
</JMSServer>


"java.security.PrivilegedActionException: javax.naming.NameAlreadyBoundException: Abhijitwithdot is already bound; remaining name ''


So if you have a queue name like A, then you cant (also) have something like A.0001.
Also, error happens if you create the queue in Weblogic Console. It politely tells you this problem.
If you manually put this in the config.xml, then one of the JMSQueues will not come up.

Cause

Resolving The Problem

Use other JNDI Names. Make sure you dont cause this conflict.
It is perfectly okay to have queue names like A.0001 and A.0002.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI49358

Product Synonym

[<p><b>]Fact[</b><p>];

Document Information

Modified date:
16 June 2018

UID

swg21547131