Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 6733 invoked from network); 20 Mar 2008 19:48:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2008 19:48:45 -0000 Received: (qmail 9467 invoked by uid 500); 20 Mar 2008 19:48:43 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 9433 invoked by uid 500); 20 Mar 2008 19:48:43 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 9424 invoked by uid 99); 20 Mar 2008 19:48:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 12:48:43 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 19:48:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JcQkH-00067i-2B for dev@activemq.apache.org; Thu, 20 Mar 2008 12:48:13 -0700 Message-ID: <16187248.post@talk.nabble.com> Date: Thu, 20 Mar 2008 12:48:13 -0700 (PDT) From: alexpeng To: dev@activemq.apache.org Subject: activemq5.0,why can not recieve failure message. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: penzhengca@hotmail.com X-Virus-Checked: Checked by ClamAV on apache.org question: After I send message, I recieve it, then email this message using processMsgInfo() function. after that, I disconnect the network,then send message,processMsgInfo has error,because it can not connect email server, the system gives me information that can not send. but the message i can not find it in database. why? I think it should be in database, when I reconnect network, the message should be resend. Is there some thing wrong with my configuration. environment: activemq5.0, tomcat6, spring2.05. mysql5(localhost database) applicationContext-jmx.xml applicationContext-jmx.xml this is for the broker messageMDP.java for asychronized to recieve the message. public void onMessage(Message message) { try { System.out.println("delivermode::" + message.getJMSDeliveryMode()); if (message.getJMSRedelivered()) { log.error("This message was redelivered:" + message); } else { MapMessage mapMessage = (MapMessage) message; mapMessage.setJMSDeliveryMode(DeliveryMode.PERSISTENT); MessageVO msg = new MessageVO(); msg.setMsgType(mapMessage.getString("msgType")); msg.setFromUser(mapMessage.getString("fromUser")); msg.setToUser(mapMessage.getString("toUser")); msg.setMessage(mapMessage.getString("message")); msg.setTime(mapMessage.getString("time")); msg.setEmail(mapMessage.getString("email")); msg.setTitle(mapMessage.getString("title")); processMsgInfo(msg); } message.acknowledge(); } catch (JMSException e) { log.error("Jms error:::" + e.getMessage()); } catch (Exception e) { log.error("MsgInfo error:::" + e.getMessage()); } } thanks Alex -- View this message in context: http://www.nabble.com/activemq5.0%2Cwhy-can-not-recieve-failure-message.-tp16187248s2354p16187248.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.