Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(ISPN-1432) Enabling batching without specifying a transaction mode gener #561

Merged
merged 1 commit into from
Oct 3, 2011

Conversation

mmarkus
Copy link
Contributor

@mmarkus mmarkus commented Oct 3, 2011

(ISPN-1432) Enabling batching without specifying a transaction mode generates runtime NPE
Master only.
https://issues.jboss.org/browse/ISPN-1432

@@ -412,7 +412,7 @@ public class Configuration extends AbstractNamedCacheConfigurationBean {
*/
@Deprecated
public void setInvocationBatchingEnabled(boolean enabled) {
if (enabled) transaction.transactionMode = TransactionMode.TRANSACTIONAL;
if (enabled) fluent().transaction().transactionMode(TransactionMode.TRANSACTIONAL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it'd be better to override InvocationBatching.setEnabled() and put this logic there?

Aren't you having to duplicate this logic in multiple places to deal with Configuration.setInvocationBatchingEnabled(true) and Configuration.fluent().invocationBatching() cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I've updated and reissued the pull request.

@Sanne
Copy link
Member

Sanne commented Oct 3, 2011

I'm having a look as well

@Sanne Sanne merged commit 07b179c into infinispan:master Oct 3, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants