-
1. Re: Global JNDI name for queues and datasources
vashistvishal Mar 4, 2005 11:58 PM (in response to matt_t_lin)Yaa you can change the JNDI name in this deploy/jms/jbossmq-destinations-service.xml
file as shown below.<mbean code="org.JBoss.mq.server.jmx.Queue" name="JBoss.mq.destination:service=Queue,name=VISHAL"> <depends optional-attribute-name="DestinationManager">JBoss.mq:service=DestinationManager</depends> Note : Try to change the default JNDI name of the queues and topic , use this attribute in this mbean descriptor, you can remove the prefix if you want i havent tried but you can try that. (not a good idea to remove though!) <attribute name="JNDIName">topic/VISHALTOPIC</attribute> or in case of queues. <attribute name="JNDIName">queue/VISHALQUEUE</attribute> </mbean>
I hope thats what you were looking for.
Vishal -
2. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 9:13 AM (in response to matt_t_lin)Actually, I am trying to get rid of queue and topic in the JNDI names, i.e. simply VISHALTOPIC and VISHALQUEUE.
In my xml file, I simply put VISHALQUEUE for example, and JBoss automatically creates the JNDI name as queue/VISHALQUEUE.
So, I have to change the code in other places to do JNDI lookup as "queue/VISHALQUEUE".
By the way, I am using JBoss 3.2.6.
Any ideas?
Thanks. -
3. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 12:47 PM (in response to matt_t_lin)After I look into JBoss source code, I figure out how to do it. You can specify JNDIName attribute.
Example below:
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
StatisticQueue -
4. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 12:50 PM (in response to matt_t_lin)Seems like it did not paste the whole example. Try it again.
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
StatisticQueue -
5. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 12:53 PM (in response to matt_t_lin)Something wrong with the website. Any ways, add the following line:
StatisticQueue -
6. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 12:54 PM (in response to matt_t_lin)OK. Here it is:
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
StatisticQueue -
7. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 7, 2005 12:54 PM (in response to matt_t_lin)I give up.
-
8. Re: Global JNDI name for queues and datasources
darranl Mar 7, 2005 1:02 PM (in response to matt_t_lin)You need to wrap your xml with [ code ] [/ code ] tags (Removing the spaces I added, also use the preview button to check that it displays correctly.
-
9. Re: Global JNDI name for queues and datasources
matt_t_lin Mar 8, 2005 9:22 AM (in response to matt_t_lin)Thanks. Let me give it a try.
Example below:<mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=StatisticQueue"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> <attribute name="JNDIName">StatisticQueue</attribute> </mbean>