Read data from BytesMessage multiple times?

2011-02-23 Thread Paul Pearcy
Hello, Is it possible to read the data from a BytesMessage multiple times? After I read the data from the message the first time, the DataInputStream dataIn member ends up getting consumed and I don't see a way to reset the InputStream to allow it to be read again. After reading the data from

Guaranteed message persistence in ActiveMQ?

2011-02-22 Thread Paul Pearcy
Hello, What is the correct/best way to achieve crash proof durability of messages with ActiveMQ? I'd like to ensure that my persistent messages have been fsynced to disk and I know that in the case of a broker power failure, the message will be there when the server comes back up. Do I need to