-
1. Re: Transaction rollback in action pipeline
marklittle Feb 27, 2008 6:36 AM (in response to beve)Have you looked at the TransactionStrategy class(es)?
-
2. Re: Transaction rollback in action pipeline
beve Feb 27, 2008 8:17 AM (in response to beve)Ah, thanks for the hint!
So something like this in a customer action:TransactionStrategy strategy = TransactionStrategy.getTransactionStrategy(true); strategy.rollbackOnly();
/Daniel -
3. Re: Transaction rollback in action pipeline
beve Feb 27, 2008 8:46 AM (in response to beve)That worked like a charm! Thanks
So the only thing I need now is a green light to commit work for http://jira.jboss.com/jira/browse/JBESB-1563 ;)
Would that be ok?
Thanks,
Daniel -
4. Re: Transaction rollback in action pipeline
kconner Feb 27, 2008 8:54 AM (in response to beve)Hiya Daniel.
You can certainly go ahead and commit on JBESB-1563. Please make sure that these activation properties cannot overwrite the ones created in the configuration mapper though, our attributes need to take precedence.
Kev -
5. Re: Transaction rollback in action pipeline
beve Feb 27, 2008 10:36 AM (in response to beve)Is this what you mean:
/* * Add user specified activation-config. These may be overridden if one of: * - destination * - providerAdapterJNDI * - destinationType * - messageSelector * - maxMessages */ ActivationConfig activationConfig = jmsJcaProvider.getActivationConfig(); if ( activationConfig != null ) { List<Property> propertyList = activationConfig.getPropertyList(); for (Iterator<Property> iterator = propertyList.iterator(); iterator.hasNext();) { Property prop = iterator.next(); addPropertyElement(activationConfigElement, prop.getName(), prop.getValue()) ; } } ... set the other config properties ...
I'll update the jms_transacted quickstart after it is merged back into the main trunk.
/Daniel -
6. Re: Transaction rollback in action pipeline
kconner Feb 29, 2008 9:27 AM (in response to beve)Hiya Daniel.
That would certainly work as a minimum but it would be better if it detected the use of any of our explicit activation properties and threw a ConfigurationException.
Kev -
7. Re: Transaction rollback in action pipeline
beve Feb 29, 2008 9:57 AM (in response to beve)Hey Kevin,
yeah, that would be much better. I'll reopen and add that.
Thanks,
/Daniel