Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maxdepth indicates the maximum number of messages that a Queue can store.
 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
No, I am from China. Why do you ask?
 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic