• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much.
No, I am from China. Why do you ask?
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic