Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 26913 invoked from network); 16 Aug 2010 20:20:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 20:20:10 -0000 Received: (qmail 10823 invoked by uid 500); 16 Aug 2010 20:20:09 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10748 invoked by uid 500); 16 Aug 2010 20:20:09 -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 10735 invoked by uid 99); 16 Aug 2010 20:20:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 20:20:08 +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; Mon, 16 Aug 2010 20:20:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7GKJl8C020462 for ; Mon, 16 Aug 2010 20:19:48 GMT Message-ID: <29479810.7821281989987670.JavaMail.jira@thor> Date: Mon, 16 Aug 2010 16:19:47 -0400 (EDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-271) Add support for a Message Transformer to be set in NMS API In-Reply-To: <27404014.6521281644147298.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQNET-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61220#action_61220 ] Timothy Bish commented on AMQNET-271: ------------------------------------- Those names are fine. As for the JMS Spec discussion, you are right that that portion of Transformation is more internal to each client, although a lot of it could be generic and implemented as an Abstract class in NMS.Util but that's separate from this issue really, just added that as I originally thought that I could use some of the bits from here to help implement it but not really the crux of what I wanted to add in this issue, so just ignore that for now. This issue is really just an attempt to support the same features as the Java client in regards to Message Transformation, see: http://activemq.apache.org/message-transformation.html > Add support for a Message Transformer to be set in NMS API > ---------------------------------------------------------- > > Key: AMQNET-271 > URL: https://issues.apache.org/activemq/browse/AMQNET-271 > Project: ActiveMQ .Net > Issue Type: Improvement > Components: ActiveMQ, EMS, MSMQ, NMS, Stomp > Affects Versions: 1.3.0 > Reporter: Timothy Bish > Assignee: Timothy Bish > Priority: Minor > Fix For: 1.4.0 > > > Add support in the NMS API for users to set an custom MessageTransformer on the NMS object: > IConnectionFactory > IConnection > ISession > IMessageProducer > IMessageConsumer > The transformer would be an instance of IMessageTransformer which provides two methods: > {noformat} > /// > /// Interface for a class that can Transform a Message from one type to another either > /// before consumption or before sent by a producer. > /// > public interface IMessageTransformer > { > /// > /// Called from an IMessageProducer prior to sending the IMessage, allows the client > /// to perform a transformation on the Message prior to it being sent. This allows a > /// client to configure a single Producer to convert a Message to a format that can be > /// processed by a specific receiving client. > /// > IMessage ProducerTransform(ISession session, IMessageProducer producer, IMessage message); > /// > /// Called from an IMessageConsumer prior to dispatching the message to the client either > /// by the 'Receive' methods or from the async listener event. Allows the client to perform > /// message pre-processing before some messages are dispatched into the client code. > /// > IMessage ConsumerTransform(ISession session, IMessageConsumer producer, IMessage message); > } > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.