-
1. Re: Retry at JMS level
beve Mar 6, 2008 6:43 AM (in response to lucdew)Hi,
we've added a quickstart named jms_transacted that might help here. This can be found in the main trunk.
Regards,
Daniel -
2. Re: Retry at JMS level
lucdew Mar 6, 2008 9:59 AM (in response to lucdew)Thanks but it didn't work with JBoss ESB 4.2.1 GA. I had a DTD validation error at deployment because the jms-message-filter does not have any "transacted" attribute (I left the transacted attribute to true on jms-jca-provider element to make it work).
Also after reading the sources I don't understand how it could work especially since in class ActionProcessorMethodInfo any exception thrown by my action's process method is wrapped into an ActionProcessingException.
And in ActionProcessingPipeline only instance of RuntimeException are checked (which ActionProcessingException is not but the cause is).
Is it a new feature ? I had a look at the code in the trunk and haven't found any difference on that.try { final Object response = processMethod.invoke(instance, currentMessage) ; if (response instanceof Message) { currentMessage = (Message)response ; } else if (response == null) { return null ; } else { throw new ActionProcessingException("Unexpected response type from processor: " + response) ; } } catch (final IllegalAccessException iae) { throw new ActionProcessingException("Illegal access from processor", iae) ; } catch (final InvocationTargetException ite) { final Throwable th = ite.getTargetException() ; if (th instanceof ActionProcessingException) { throw (ActionProcessingException)th ; } throw new ActionProcessingException("Unexpected invocation target exception from processor", th) ; }
-
3. Re: Retry at JMS level
beve Mar 6, 2008 10:05 AM (in response to lucdew)Hi,
no the quickstart will not work with 4.2.1 GA, only with the ESB server built from the main trunk (http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk).
Regards,
Daniel