Sorry for being ambiguous, i will try to clarify it now. Ideally all the JNDI names should point to the same queue (I left the option if that is not possible).
Now about the problem. I have a packaged application (IBM Maximo) that is deployed on cluster c1, and standalone nodes n1, n2 with 3 different ear files with slight configuration differences(login methods are different for each file). I need to enable the JMS integration to external ESB system. I can't configure the JMS name for each deployment instance, the JNDI is read from the database.
The problem with weblogic is that the distiributed queue (UDD) can't be deployed both on cluster and standalone instances. Distributed queue has the unique JNDI name across all the nodes deployed on.
One really ugly solution for this could be to use the foreign JNDI server, and point to the external JMS server like HORNETQ. I already tried that and the solution is simple and working, however this is one more system to manage in production, and I want to avoid it.
I know that it can be done, because the distributed queue mechanism is working in weblogic for a cluster, each node points to the same JMS queue with the same JNDI name, but I can't add the standalone nodes. Also, creating separate domains for each standalone instance is not a really desirable option.