Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 68367 invoked from network); 6 Oct 2009 12:10:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 12:10:43 -0000 Received: (qmail 29947 invoked by uid 500); 6 Oct 2009 12:10:43 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 29891 invoked by uid 500); 6 Oct 2009 12:10:43 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 29882 invoked by uid 99); 6 Oct 2009 12:10:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 12:10:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 12:10:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 02E5C238888A; Tue, 6 Oct 2009 12:09:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r822235 - in /activemq/branches/activemq-5.3: activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java activemq-xmpp/pom.xml activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java Date: Tue, 06 Oct 2009 12:09:48 -0000 To: commits@activemq.apache.org From: dejanb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091006120949.02E5C238888A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dejanb Date: Tue Oct 6 12:09:48 2009 New Revision: 822235 URL: http://svn.apache.org/viewvc?rev=822235&view=rev Log: merging 822231 - stomp and xmpp test on ibm jdk 6 Modified: activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java activemq/branches/activemq-5.3/activemq-xmpp/pom.xml activemq/branches/activemq-5.3/activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java Modified: activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?rev=822235&r1=822234&r2=822235&view=diff ============================================================================== --- activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java (original) +++ activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java Tue Oct 6 12:09:48 2009 @@ -85,8 +85,9 @@ + "}}"; protected void setUp() throws Exception { - // The order of the entries is different when using the ibm jdk. - if (System.getProperty("java.vendor").equals("IBM Corporation")) { + // The order of the entries is different when using ibm jdk 5. + if (System.getProperty("java.vendor").equals("IBM Corporation") + && System.getProperty("java.version").startsWith("1.5")) { xmlMap = "\n" + " \n" + " city\n" Modified: activemq/branches/activemq-5.3/activemq-xmpp/pom.xml URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-xmpp/pom.xml?rev=822235&r1=822234&r2=822235&view=diff ============================================================================== --- activemq/branches/activemq-5.3/activemq-xmpp/pom.xml (original) +++ activemq/branches/activemq-5.3/activemq-xmpp/pom.xml Tue Oct 6 12:09:48 2009 @@ -145,15 +145,13 @@ jivesoftware smack - 1.5.0 - + 3.1.0 test jivesoftware smackx - 1.5.0 - + 3.1.0 Modified: activemq/branches/activemq-5.3/activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java?rev=822235&r1=822234&r2=822235&view=diff ============================================================================== --- activemq/branches/activemq-5.3/activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java (original) +++ activemq/branches/activemq-5.3/activemq-xmpp/src/test/java/org/apache/activemq/transport/xmpp/XmppTest.java Tue Oct 6 12:09:48 2009 @@ -19,8 +19,11 @@ import junit.framework.TestCase; import junit.textui.TestRunner; import org.jivesoftware.smack.Chat; +import org.jivesoftware.smack.ConnectionConfiguration; +import org.jivesoftware.smack.MessageListener; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; +import org.jivesoftware.smack.packet.Message; /** * @version $Revision$ @@ -37,21 +40,27 @@ } public void testConnect() throws Exception { - // ConnectionConfiguration config = new - // ConnectionConfiguration("localhost", 61222); + ConnectionConfiguration config = new + ConnectionConfiguration("localhost", 61222); // config.setDebuggerEnabled(true); try { // SmackConfiguration.setPacketReplyTimeout(1000); - // XMPPConnection con = new XMPPConnection(config); - XMPPConnection con = new XMPPConnection("localhost", 61222); + XMPPConnection con = new XMPPConnection(config); + con.connect(); con.login("amq-user", "amq-pwd"); - Chat chat = con.createChat("test@localhost"); + Chat chat = con.getChatManager().createChat("test@localhost", + new MessageListener() { + public void processMessage(Chat chat, Message message) { + // + } + }); for (int i = 0; i < 10; i++) { System.out.println("Sending message: " + i); chat.sendMessage("Hello from Message: " + i); } System.out.println("Sent all messages!"); + con.disconnect(); } catch (XMPPException e) { if (block) { System.out.println("Caught: " + e);