wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Whre JNDI Queue name is saved? and What does MaxDepth mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Whre JNDI Queue name is saved? and What does MaxDepth mean?" Watch "Whre JNDI Queue name is saved? and What does MaxDepth mean?" New topic
Author

Whre JNDI Queue name is saved? and What does MaxDepth mean?

chaohua wang
Ranch Hand

Joined: Dec 22, 2002
Posts: 62
Hi Folks,

Please help
1.)
I went to http://localhost:8080/jmx-console/
then to: jboss.mq.destination
then to: name=testQueue,service=Queue
I can change name of JNDIName: queue/testQueue to queue/MyQueue
then click Apply Changed.

Could you tell me where the change is saved to?

After shutting down and start it again. the changed JNDIName is gone,
still queue/testQueue. Why?


2.) I also can setup MaxDepth. For excample I set 50 as MaxDepth.

I wonder if number of the incoming packages is greater than 50. the rest pacake will be lost?

Thank you!

Chwang
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

chaohua,

Any changes made in the console will be stored in memory and will not be persisted. So I am not surprised that you are not able to see the changes after restart.

JMS queues/topics configuration infi are stored in jms folder .

Are you from Singapore?


Groovy
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Maxdepth indicates the maximum number of messages that a Queue can store.
chaohua wang
Ranch Hand

Joined: Dec 22, 2002
Posts: 62
Thank you very much.
No, I am from China. Why do you ask?
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 213
Pradip,

Can you tell me exactly which file in jms folder? I tried to look for the queue JNDI name setup, I can't find it unfortunately.


Thanks
Benson
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

In the jms directory, you will find a file name jbossmqdestination-service.xml(or something similar to that name, i fail to remember the exact name right now). The test queues are already configured in this file. You can add your queue configurations to this existing file or create a file similar to this file and name it something like *-service.xml(Note: The file name should end with -service.xml for jboss to configure the queue). You can then configure your queues in this file


[My Blog] [JavaRanch Journal]
 
Consider Paul's rocket mass heater.
 
subject: Whre JNDI Queue name is saved? and What does MaxDepth mean?