Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes Persistance in JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Persistance in JMS" Watch "Persistance in JMS" New topic

Persistance in JMS

vivek makode

Joined: Oct 01, 2001
Posts: 27
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

Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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?
I agree. Here's the link:
subject: Persistance in JMS
It's not a secret anymore!