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

MODE-2336 Changed the way ModeShape deals with user transactions #1304

Merged
merged 1 commit into from Oct 24, 2014

Conversation

hchiorean
Copy link
Member

Instead of using synchronizers which cannot be ordered with respects to ISPN's synchronizer that actually persists the data, ModeShape now uses an Infinispan transaction listener which will only be called once ISPN has processed the transaction.
This is the only way that ModeShape can be consistently notified only after ISPN has finished processing a transaction.

public void commit() {
// This transaction spans more than just our usage, so we don't commit anything here ...
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException {
//nothing by default
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor detail: these exceptions are unused, so they can be removed from the declaration. (These actually generate warnings in some IDEs and could in checkstyle if we enabled the rule.)

@rhauch
Copy link
Contributor

rhauch commented Oct 23, 2014

Had a few really minor comments and one question; see above. Otherwise, this looks great.

…tead of using synchronizers which cannot be ordered with respects to ISPN's synchronizer that actually persists the data, ModeShape now uses an Infinispan transaction listener which will only be called once ISPN has processed the transaction.
@hchiorean
Copy link
Member Author

amended the commit based on the previous comments

hchiorean pushed a commit that referenced this pull request Oct 24, 2014
MODE-2336 Changed the way ModeShape deals with user transactions
@hchiorean hchiorean merged commit 39ba1d8 into ModeShape:master Oct 24, 2014
@hchiorean hchiorean deleted the MODE-2336 branch October 24, 2014 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants