Hi,

I am sending 5000 messages (in loop, all in separate session) to activemq. 
I have following entry in my activemq.xml file:
<policyEntry queue=">" producerFlowControl="false" memoryLimit="1mb" >
                  
                </policyEntry>

and I am sending messages using persistent delivery mode. 

My query is : I tried to stopped the activemq server during the sending
message. what kind of exception I would get. i could not see any exception
raised when I stopped the server instead the producer resumed sending
message when I re-started the activemq server. (I tried with delivery mode
as non_persistent as well).

I need to throw exception, if in case of server crash to notify producer
that something went wrong (so producer can notify service about this and
hence service can rollback the transaction).

I know if I use persistence delivery mode, I would not be loosing any
message and all message (in my case 5000 msgs) would be delivered to
queue(s)
what kind of setting I need to perform to make activemq server raising an
exception in case of server crash.





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/exception-thrown-on-activemq-server-crash-tp4661708.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to