Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14C0819B90 for ; Wed, 16 Mar 2016 06:07:38 +0000 (UTC) Received: (qmail 49559 invoked by uid 500); 16 Mar 2016 06:07:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 49516 invoked by uid 500); 16 Mar 2016 06:07:37 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 49502 invoked by uid 99); 16 Mar 2016 06:07:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 06:07:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 112FA1804A1 for ; Wed, 16 Mar 2016 06:07:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.804 X-Spam-Level: *** X-Spam-Status: No, score=3.804 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313, URI_TRY_3LD=0.068] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 3jle9APqCiks for ; Wed, 16 Mar 2016 06:07:35 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 860F75FAD1 for ; Wed, 16 Mar 2016 06:07:34 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 5017A1C64A5D2 for ; Tue, 15 Mar 2016 22:56:35 -0700 (PDT) Date: Tue, 15 Mar 2016 22:38:54 -0700 (PDT) From: xabhi To: users@activemq.apache.org Message-ID: <1458106734803-4709447.post@n4.nabble.com> Subject: ActiveMQ Object Message to json transformation not working MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am having trouble sending a custom Object Message to a STOMP consumer with ActiveMQ v5.11.1 In Jconsole, I can see messages being dequeued by STOMP consumer but the subscription callback is never called. However note that if I send a simple string as object message it gets processed by STOMP consumer and I receive a JSON formatted message in this format: {"string":"hello"} I create the message as follows: myMessage = mySession.createObjectMessage("hello"); myProducers.get(destName).send(myMessage); I am not sure what am i doing wrong here. Could anyone tell what is wrong with this code? Object Message class: public static class SampleObjectMessage implements Serializable { private static final long serialVersionUID = 1L; public String data; public long sendTimeMs; public SampleObjectMessage(String data, long sendTimeMs) { this.data = data; this.sendTimeMs = sendTimeMs; } public String getData() { return data; } public void setData(String data) { this.data = data; } public long getSendTimeMs() { return sendTimeMs; } public void setSendTimeMs(long sendTimeMs) { this.sendTimeMs = sendTimeMs; } } Code for sending ObjectMessage: myMessage = mySession.createObjectMessage( new SampleObjectMessage(getMessageText(ourMessageSize), System.currentTimeMillis())); myProducers.get(destName).send(myMessage); STOMP consumer has following headers for subscription: var subscriptionHeaders = { 'ack' : 'auto', 'transformation' : 'jms-object-json' }; -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Object-Message-to-json-transformation-not-working-tp4709447.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.