Solved

Persistent JMS messages

Posted on 2013-11-07
3
177 Views
Last Modified: 2013-11-14
hi guys
There is some JMS code which we have inherited
We are using WebsphereMQ

I see these thre lines of code

javax.jms.Queue queue = (javax.jms.Queue) initialctx.lookup("QUEUE.NAME");
QueueSender queueSender = queueSession.createSender(queue);
queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);

My question is if the deliverymode is set to DeliveryMode.PERSISTENT, where is the message persisted in case of webspehre MQ?

thanks
0
Comment
Question by:royjayd
3 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 300 total points
ID: 39632155
I am more experienced with ActiveMQ than WebsphereMQ but the principles are generally the same. It appears that the persistence mechanism with WebsphereMQ is filesystem based.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=%2Fcom.ibm.mq.csqzal.doc%2Ffg10810_.htm

There may be other options but it appears that this is at least the default. I know with ActiveMQ that the default option is a file based system called KahaDB but that you have the option to configure a different type of message store with some one other option being that the messages are persisted to a traditional SQL database.
0
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 125 total points
ID: 39632777
Like all other implementations , this too might/should be a file . Specifically , the persistence store you see in the MQ config would be the place where all your messages are stored
0
 

Author Closing Comment

by:royjayd
ID: 39648415
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
reasons why a "inside Menu" would not appear for a web server 6 56
Free Alternative to JIRA 4 91
Spring Framework HTTPSession management 1 24
factorial example 4 35
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now