Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… with non transactional mdb's
  • Loading branch information
andytaylor committed Apr 15, 2010
1 parent d0dc455 commit e3b6f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/org/hornetq/ra/inflow/HornetQMessageHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ public void onMessage(final ClientMessage message)
endpoint.beforeDelivery(HornetQActivation.ONMESSAGE);
beforeDelivery = true;
msg.doBeforeReceive();
message.acknowledge();
((MessageListener)endpoint).onMessage(msg);
message.acknowledge();
endpoint.afterDelivery();
if (useLocalTx)
{
Expand All @@ -269,7 +269,7 @@ public void onMessage(final ClientMessage message)
HornetQMessageHandler.log.warn("Unable to call after delivery");
}
}
if (useLocalTx)
if (useLocalTx || !activation.isDeliveryTransacted())
{
try
{
Expand Down

0 comments on commit e3b6f98

Please sign in to comment.