Solved

Persistent JMS messages

Posted on 2013-11-07
3
179 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 95
JList custom Cell Renderer refresh 15 56
check java version using powershell 13 80
eclipse buid path vs tomcat lib path 10 22
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

813 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

12 Experts available now in Live!

Get 1:1 Help Now