Solved

Persistent JMS messages

Posted on 2013-11-07
3
173 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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 59
copyEndy  challenge 15 55
topping3 challenge 14 48
Groovy:unable to resolve class error 2 28
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

772 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

11 Experts available now in Live!

Get 1:1 Help Now