Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03CB81073A for ; Fri, 26 Jul 2013 13:17:49 +0000 (UTC) Received: (qmail 77109 invoked by uid 500); 26 Jul 2013 13:17:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 76898 invoked by uid 500); 26 Jul 2013 13:17:48 -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 76701 invoked by uid 99); 26 Jul 2013 13:17:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 13:17:48 +0000 Date: Fri, 26 Jul 2013 13:17:48 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Moved] (AMQNET-440) IObjectMessage.ToObject is not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQNET-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish moved AMQ-4653 to AMQNET-440: ------------------------------------------ Key: AMQNET-440 (was: AMQ-4653) Project: ActiveMQ .Net (was: ActiveMQ) > IObjectMessage.ToObject is not working > ----------------------------------------- > > Key: AMQNET-440 > URL: https://issues.apache.org/jira/browse/AMQNET-440 > Project: ActiveMQ .Net > Issue Type: Bug > Environment: activeMQ 5.8.0, C# API NMS 1.6.0 > Reporter: Tamilmaran > > IObjectMessage.ToObject is not working to achieve deserialization. > The code sample: > protected static void OnMessage(IMessage receivedMsg) > { > objMessage = receivedMsg as IObjectMessage; > //Following code is not working > IEmployee emp = objMessage.ToObject(); > //Following code is not working > IEmployee emp1 = objMessage.ToObject() as IEmployee; > //Following code is working > IEmployee iEmp = objMessage.Body as IEmployee;//This code only is working > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira