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

Mark Payne updated NIFI-12478:
------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Return Message Type as body for JMS Object Messages
> ---------------------------------------------------
>
>                 Key: NIFI-12478
>                 URL: https://issues.apache.org/jira/browse/NIFI-12478
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Minor
>             Fix For: 2.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The ConsumeJMS Processor supports receiving multiple types of JMS messages 
> and implements different serialization strategies for each type of message. 
> The JMS ObjectMessage Type provides a generic wrapper around an opaque Java 
> Object without any further information. The ConsumeJMS Processor currently 
> writes the bytes of an Object using Java Object serialization, which presents 
> several issues. Java Object serialization is not compatible with services 
> outside of Java, it writes the exact version of the Java Object, and it can 
> reference classes that may not be present on the receiving system. This can 
> lead to unexpected errors when receiving JMS messages in the context of a 
> NiFi Processor. Instead of reporting the message as an error, the message 
> metadata could still be useful in some flows. Using the Message Type of 
> {{ObjectMessage}} as the output bytes enables this edge case scenario, 
> although any system designed to interoperate with NiFi should use other types 
> of JMS messages to enable subsequent handling in other Processors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to