Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 39541 invoked from network); 27 Oct 2006 21:28:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 21:28:22 -0000 Received: (qmail 86925 invoked by uid 500); 27 Oct 2006 21:28:31 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 86889 invoked by uid 500); 27 Oct 2006 21:28:31 -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 86874 invoked by uid 99); 27 Oct 2006 21:28:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 14:28:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.235.254.11] (HELO exodus.exist.com) (209.235.254.11) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 14:28:19 -0700 Received: from [192.168.200.183] ([205.147.11.148]) (authenticated bits=0) by exodus.exist.com (8.13.1/8.13.1) with ESMTP id k9RLRoYC017863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 27 Oct 2006 17:27:52 -0400 Message-ID: <454279D5.5010207@exist.com> Date: Sat, 28 Oct 2006 05:27:49 +0800 From: Adrian Co User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: activemq-users@geronimo.apache.org Subject: Re: Use of ObjectMessageSerializationDefered References: <7037470.post@talk.nabble.com> In-Reply-To: <7037470.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm not sure if it should work or not. But maybe you can try setting copyMessageOnSend to false. brodyc wrote: > Is there a way to send a message that contains an object which does not > implement Serializable when using integrated broker ( > brokerURL=vm://localhost). > > I read this on ActiveMQ website: > > "Disabling Object serialization with ObjectMessage for ActiveMQ 4.x > ========================================= > The JMS specification dictates that the body of an ObjectMessage must be > serialized when you call send() to avoid the object changing under your feet > affecting what view the consumer sees of the object. > > You can disable the automatic serialization of ObjectMessage payloads so > that the objects are passed by value in 4.x by setting the > objectMessageSerializationDefered flag to true on the > ActiveMQConnectionFactory (or ActiveMQConnection)." > > I thought that I could wrap my non-serializable object in a Serializable > envelope object and pass it on. Perhaps I am just naive to expect it to work > but the documentation led me to believe that this may be possible. When I > try this approach I get java.io.NotSerializableException > > I use ActiveMQ 4.0.1 and Spring. My spring xml defines the factory as > follows: > > > value="vm://localhost?broker.objectMessageSerializationDefered=true"/> > > > Thanks, jc > >