spring - timeout interval between receiving a message and acknowledging it -
what timeout interval ( between receiving message , acknowledging ) if using activemqsession.individual_acknowledge , can configure it?
the spring code queue
activemqconnectionfactory amqconnectionfactory = new activemqconnectionfactory(); cachingconnectionfactory cachingconnectionfactory = new cachingconnectionfactory(amqconnectionfactory); activemqqueue activemqqueue = new activemqqueue("cr.default.queue"); jmstemplate jmstemplate = new jmstemplate(); jmstemplate.setconnectionfactory(cachingconnectionfactory); jmstemplate.setdefaultdestination(activemqqueue); jmstemplate.setsessionacknowledgemode(activemqsession.individual_acknowledge); jmstemplate.setreceivetimeout(jmsdestinationaccessor.receive_timeout_no_wait);
Comments
Post a Comment