ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vittorio Ballestra (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ODE-417) MessageExchange Failure not handled correctly (with OPENJPA)
Date Mon, 08 Dec 2008 23:29:44 GMT

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

Vittorio Ballestra updated ODE-417:
-----------------------------------

    Attachment: patch.txt

I found that the problem is that the _dao object in MessageExchangeImpl is DETACHED from EM
when stored in the hashtable of OdeConsumer.
So when a reply or fault arrives, changes are not persisted.
The following patch is a DIRTY one but it works. Better should be (methink) to not store MessageExchangeImpl
in the OdeConsumer but only ID.

> MessageExchange Failure not handled correctly (with OPENJPA)
> ------------------------------------------------------------
>
>                 Key: ODE-417
>                 URL: https://issues.apache.org/jira/browse/ODE-417
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2, 1.3
>         Environment: SERVICEMIX + ODE-JBI-1.2-SNAPSHOT WITH EXTERNAL DATASOURCE (MySql)
>            Reporter: Vittorio Ballestra
>         Attachments: patch.txt
>
>
> Way to reproduce this behaviour:
> 1) create a simple process that makes an InOut exchange with some service on a JBI bus.
> 2) let this service reply with an error (not a fault)
> If sendSync is true the exchange is set in FAILURE state.
> If sendSync is false the exchange is left in ASYNC state.
> Stepping in debug mode you can see that the exchange is set in FAILURE state but this
change is not persisted to database. When the async processor reloads the MessageExchange
from DB it is still in ASYNC state.
> Tried a naive patch that makes a "flush" of the entity-manager just after setting the
state to FAILURE but it hangs. Still indagating.

-- 
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