"InvalidNameException: __dummy2" when connecting to Sun Message Queue server when using OpenDS LDAP provider in JBoss SOA-P 5.3

Solution Verified - Updated -


  • Our current ESB uses Sun Messge Queue server, aka SunMQ. It provides access to the connection factories and queues via JNDI with Sun/Oracle OpenDS LDAP as JNDI provider.
  • I get an error when i try to connect to the SunMQ via JNDI:
javax.naming.InvalidNameException: __dummy2: [LDAP: error code 34 - The provided value "__dummy2" could not be parsed as a valid distinguished name because the underscore character is not allowed as the first character of an attribute name even if the ds-cfg-allow-attribute-name-exceptions configuration option is enabled]; remaining name '__dummy2'
  • Our jboss-esb.xml looks like:
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.1.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.1.xsd">
  <jms-provider connection-factory="XAConnectionFactory"
   jndi-context-factory="com.sun.jndi.ldap.LdapCtxFactory" name="SomeName">
   <jms-bus busid="SomeTopic">


  • JBoss Enterprise SOA Platform (SOA-P) 5.3.0
  • Sun Message Queue server
  • Sun/Oracle OpenDS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content