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

Is it POSSIBLE for using a transaction between different threads? #34

Open
GoogleCodeExporter opened this issue May 26, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I wanna use transaction command on a different thread.
  thread 1 : begin
  thread 2 : insert query
  thread 3 : commit!
That's it! But how can do this?

>>What version of the MyBatis.NET are you using?

ibatis.net 1.6.2.0 maybe..

>>Please describe the problem.  Unit tests are best!

I want to using a transaction with UI or remote.
example 1)
  In case of UI has buttons.
    [Execute the BeginTransaction]
    [Execute a query]
    [Execute the CommitTransaction]
    [Execute the RollbackTransaction]
  And Transaction would be called By User clicking a button.
  Even has executed BeginTransaction, but it occurs an exception with "transaction is not started" when user execute Commit or Rollback. I think that it causes for different thread.


example 2)
 In case of UI with Remote service (like WCF Service)
 also, an user uses [example1 program] on a remote site using WCF.


Please, help me or mail to [email protected]
Thank you.

Original issue reported on code.google.com by [email protected] on 20 Aug 2011 at 11:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant