[ https://issues.apache.org/activemq/browse/SM-526?page=all ]

Grant McDonald updated SM-526:
------------------------------

    Attachment: JbiInvokeAction.java.patch

The patch is now ready to go and has been tested to allow BPEL to receive and 
manipulate fault messages.  As discussed the patch is in a form that can be 
applied from the root apache-servicemix directory.

The problem lay in how XMLInteractionObjects are dealt with in BPE.  Initially 
it was suggested by the ODE dev list that the fault/response messages should be 
wrapped in DescribedValue objects.  Unfortunately when either type was received 
they were wrapped in a CannedFormattableValue which does not lend itself to 
further manipulation.  To alleviate this issue fault messages and response 
messages have now been wrapped in a intance of the DocumentFormattableValue 
class which fixes the problem.

> Fault messages returned to BPEL via servicemix-bpe are not accessible in BPEL
> -----------------------------------------------------------------------------
>
>                 Key: SM-526
>                 URL: https://issues.apache.org/activemq/browse/SM-526
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-bpe
>         Environment: Ubuntu Linux 5.10, Windows XP SP2, ServiceMix HEAD
>            Reporter: Grant McDonald
>         Attachments: JbiInvokeAction.java.patch
>
>   Original Estimate: 15 minutes
>  Remaining Estimate: 15 minutes
>
> When returning output and fault messages an XMLInteractionObject is currently 
> being used to wrap the Document object created from the NormalizedMessage.  
> The use of XMLInteractionObject is deprecated within ODE and due to some not 
> entirely   understood code paths this results in Fault messages being wrapped 
> in a CannedFormattableValue which renders the object immutable in BPEL and 
> its data unretrieveable to the JBI world when sent back to ServiceMix.
> The answer is to use instead DescribedValue from ODE/BPE to wrap both the 
> output and fault messages of a JBI invoke action.  A patch for this has been 
> attached.  Testing has been done, although no test cases have been prepared.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to