Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persistance in JMS

 
vivek makode
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have just started using JMS API. I am thru with simple pub/sub example.
But I am unable to store the message( an xml file in my case) using JMS FileStore.
I have created a directory on my local disk and a filestore in the JMS server configuartion.
The .xml file is not saved anywhere.
What extra settings if any are required? Does the sender code automatically saves the file or we need to do some extra coding for this?
Also how is a JDBCStore used?
Can anyone please help me in this regard?
Thanks in advance
Vivek

 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vivek makode:
The .xml file is not saved anywhere.

Are you expecting to see an xml file in your hard drive? The JMS Server will store the message to desk in its own format, likely unreadable to you.
Furthermore, since you are using Topics the message will only be persisted if you are using durable subscriptions. Are you running into problems or are you just assuming that things are not working correctly?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic