You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by alexpeng <pe...@hotmail.com> on 2008/03/24 21:34:09 UTC
activemq5.0,why can not send failure message.
After I send message, I recieve it, then email this message using
processMsgInfo() function which is asynchronized method to recieve the
message.
after that, I disconnect the network,then send message,processMsgInfo has
error,because it can not connect email server, the system gives follow error
messages, and then I browse the database, the record was deleted. (My
thought is it should be in database, when I reconnect network, the message
should be resend. )
[org.springframework.jms.listener.DefaultMessageListenerContainer#0-1] ERROR
MessageMdp:52 - Mail server connection failed; nested exception is
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
this connection reset cleans the database. how could I protecte it from
deleting the data from database.
If it is DefaultMessageListenerContainer's problem in springframe. so how
could we protect from connection reset?
I use
<property name="sessionAcknowledgeModeName" value="CLIENT_ACKNOWLEDGE"/>
<property name="transactionManager" ref="jmsTransactionManager" />
--
View this message in context: http://www.nabble.com/activemq5.0%2Cwhy-can-not-send-failure-message.-tp16260386s2354p16260386.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: help! activemq5.0,why can not send failure message.
Posted by alexpeng <pe...@hotmail.com>.
I have solve this problem.
Thank you everybody
alexpeng wrote:
>
> After I send message, I recieve it, then email this message using
> processMsgInfo() function which is asynchronized method to recieve the
> message.
> after that, I disconnect the network,then send message,processMsgInfo has
> error,because it can not connect email server, the system gives follow
> error messages, and then I browse the database, the record was deleted.
> (My thought is it should be in database, when I reconnect network, the
> message should be resend. )
>
>
> [org.springframework.jms.listener.DefaultMessageListenerContainer#0-1]
> ERROR MessageMdp:52 - Mail server connection failed; nested exception is
> javax.mail.MessagingException: Exception reading response;
> nested exception is:
> java.net.SocketException: Connection reset
>
> this connection reset cleans the database. how could I protecte it from
> deleting the data from database.
>
> If it is DefaultMessageListenerContainer's problem in springframe. so how
> could we protect from connection reset?
>
> I use
> <property name="sessionAcknowledgeModeName" value="CLIENT_ACKNOWLEDGE"/>
> <property name="transactionManager" ref="jmsTransactionManager" />
>
>
>
--
View this message in context: http://www.nabble.com/help%21-activemq5.0%2Cwhy-can-not-send-failure-message.-tp16260386s2354p16276693.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.