[jboss-dev-forums] [JBoss ESB Development] - Re: Synchronous Service Invoker Action

Kevin.Conner@jboss.com do-not-reply at jboss.com
Mon Oct 19 09:38:02 EDT 2009


The PRD contains the following, but not all of it makes sense (for example the calling service does not know *how* it has been invoked nor can the response be received within the context of a transaction).

anonymous wrote : Invoking a service from the action chain of another service, blocking and waiting N amount of time for a response.
  | Time-outs handling:
  | -  If the calling service (the one with the SSI action) is being executed synchronously then it needs to provide an exception back to its waiting client.
  | - If the calling service is being executed asynchronously then the message needs to be sent to the Redelivery Service.
  | The waiting for a response should still be within the context of a transaction so that a timeout of the SSI action causes a transactional rollback, no message loss due to SSI action timeout.

I think it would be better to have the timeout behaviour configurable, so the action has the option of throwing an exception to the caller or continuing the processing in some way.  What do you think?

As for transactions, the action should allow for any encompassing transaction to be suspended (and always resumed on completion) but should not rollback on failure as timeouts are application behaviour.

Kev

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261060#4261060

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261060



More information about the jboss-dev-forums mailing list