Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | 6.x |
When an exception occurs in an EMS destination's preprocessor, the expectation is that this EMS message should be redelivered according to the settings for this queue. For example:
tcp://localhost:7222> show queue BE.Orders Queue: BE.Orders Type: static Properties: *prefetch=5,maxRedelivery=3,redeliveryDelay=1min,*store=$sys.nonfailsafe JNDI Names: <none> Bridges: <none> Receivers: 0 Pending Msgs: 0, (0 persistent) Delivered Msgs: 0 Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
body { int a = 10; int b = 0; try { System.debugOut("result is: "+ a%b); } catch (Exception e) { System.debugOut("***** Exception in preprocessor has occurred (" + e + ")."); Engine.Rtc.abortRTC(); } }