Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 58348 invoked from network); 15 Nov 2006 15:14:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 15:14:18 -0000 Received: (qmail 59021 invoked by uid 500); 15 Nov 2006 15:14:27 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 59006 invoked by uid 500); 15 Nov 2006 15:14:27 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 58997 invoked by uid 99); 15 Nov 2006 15:14:27 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 07:14:24 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GkMSX-0002U6-Ew for activemq-users@geronimo.apache.org; Wed, 15 Nov 2006 07:13:53 -0800 Message-ID: <7359384.post@talk.nabble.com> Date: Wed, 15 Nov 2006 07:13:53 -0800 (PST) From: Lars To: activemq-users@geronimo.apache.org Subject: Re: ObjectMessage serialization In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: lars.krog-jensen@six.se References: <7357377.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have tried setting the property on both the connection factory and the connection: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(user, pwd, "vm://localhost"); connectionFactory.setUseAsyncSend(true); connectionFactory.setObjectMessageSerializationDefered(true); connectionFactory.setCopyMessageOnSend(false); _connection = connectionFactory.createConnection(); ((ActiveMQConnection )_connection).setObjectMessageSerializationDefered(true); but neither way is it working. This connection is used to produce and comsume messages. To make things even more strange is that if remote clients access the broker and receives the ObjectMessage, the received object is always NULL when objectMessageSerializationDefered == true, and is working as expected when objectMessageSerializationDefered == false. To make things clear, I expect serialization on the remote client anyhow, but not on the local, embedded, client (producer and consumer). The broker is configured as follows: _broker = new BrokerService(); _broker.setPersistent(false); _broker.addConnector("vm://localhost"); _broker.addConnector("tcp://localhost:61616"); Lars James.Strachan wrote: > > How are you trying to set the setting? > > James > ------- > http://radio.weblogs.com/0112098/ > > -- View this message in context: http://www.nabble.com/ObjectMessage-serialization-tf2635978.html#a7359384 Sent from the ActiveMQ - User mailing list archive at Nabble.com.