activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Co (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-1208) XStream message transformer that works in both directions
Date Mon, 18 Jun 2007 10:58:34 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrian Co resolved AMQ-1208.
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: incubation)
                   5.0.0

Patch applied: http://svn.apache.org/viewvc?view=rev&rev=548300. Thanks Dejan!

Though I hope you won't mind that I renamed the methods to textToObject and objectToText.
I got confused a couple of times of what was happening... :)

On a side note, what do you think of having 3 types of transformation:
1. object to text - original
2. text to object - reverse
3. adaptive - i.e. if a producer tries to send an object message it will transform to text
message, and if it tries to send a text message, it will transform to object message, vice
versa for consumers...

Don't know if its useful though or if makes any sense. :)

> XStream message transformer that works in both directions
> ---------------------------------------------------------
>
>                 Key: AMQ-1208
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1208
>             Project: ActiveMQ
>          Issue Type: New Feature
>    Affects Versions: incubation
>            Reporter: Dejan Bosanac
>            Assignee: Adrian Co
>            Priority: Minor
>             Fix For: 5.0.0
>
>         Attachments: XStreamMessageTransformer.java
>
>
> Enhanced transformer that could be configured to work in both directions. It contains
'reverse' property, which is false by default. In this case it works exactly as it is working
now. In case that it is true, it changes direction of transformation ... producer transforms
from text to object messages and consumers transforms form object to text ... I needed it
for use with the Rest API in order to intercept and transform messages submitted through POST
method.   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message