Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 37849 invoked from network); 8 Sep 2010 11:06:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 11:06:24 -0000 Received: (qmail 1067 invoked by uid 500); 8 Sep 2010 11:06:24 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 931 invoked by uid 500); 8 Sep 2010 11:06:22 -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 923 invoked by uid 99); 8 Sep 2010 11:06:21 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 11:06:21 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 11:06:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o88B5gqD001767 for ; Wed, 8 Sep 2010 11:05:42 GMT Message-ID: <6766046.12131283943942440.JavaMail.jira@thor> Date: Wed, 8 Sep 2010 07:05:42 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Reopened: (AMQ-2622) ObjectMessage is [still] being serialized and de-serialized when using setObjectMessageSerializationDefered and setCopyMessageOnSend in local vm:// scenario In-Reply-To: <1084951706.7951266855760205.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully reopened AMQ-2622: ----------------------------- when a deferred serializable message is marshaled it needs to serialize, as described in the case of a vm non serialized message to a topic with multiple consumers, some of which don't use vm: transport and as a result need marshaling. Query ordering? if the non vm: consumer is dispatched to before the vm: consumer, will it negate the non serialization for the vm consumer? > ObjectMessage is [still] being serialized and de-serialized when using setObjectMessageSerializationDefered and setCopyMessageOnSend in local vm:// scenario > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: AMQ-2622 > URL: https://issues.apache.org/activemq/browse/AMQ-2622 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.0 > Environment: Windows Server 2008 R2, 64-bit, binary download of ActiveMQ 5.3.0, Java 1.6.0_17 (64-bit), Eclipse 3.5 (64-bit), tomcat 6.0 (64-bit) > Reporter: Bob DeRemer > Assignee: Gary Tully > Fix For: 5.4.0 > > Attachments: unit-test.txt > > > I have outlined the problem in the following forum link: > http://old.nabble.com/URGENT-QUESTION:-AMQ-5.3.0-bug-or-configuration-error------ObjectMessage-is--still--being-serialized-when-using-setObjectMessageSerializationDefered-and-setCopyMessageOnSend-td27654579.html > I have not created a JUnit test that demonstrates this, but here are the basic steps to reproduce this: > * create an embedded broker with no persistence, dedicatedTaskRunner = false, and optimizedDispatch = true > * create the ActiveMQConnectionFactory and set the setObjectMessageSerializationDefered = TRUE and setCopyMessageOnSend = FALSE > * create your connection from the factory > * create a producer and [MessageListener] consumer against a Queue > * create your own custom java object that implements Externalizable - this is important, because you will be able to set a breakpoint in the readExternal and writeExternal methods to see the 2 locations on the AMQ code where the message is copied - causing a serialization/de-serialization > * create a new ObjectMessage and send it from the producer to the consumer > The message will get serialized in ActiveMQConnection.java on this line [msg = msg.copy();] - see the linked forum issue for the code snippet and line numbers. > NOTE: you will need to continue stepping the code through the complete dispatch process because it will go through a de-serialization phase as well when the call to getObject is called in the onMessage of the MessageListener. > Please let me know if I can provide any more details - OR, if I'm not setting something properly to keep the ObjectMessage from being serialized. > Thanks, > Bob -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.