This discussion is archived
0 Replies Latest reply: Nov 2, 2012 5:48 AM by 933249 RSS

How to work with transactions in custom security provider?

933249 Newbie
Currently Being Moderated
I have system datasource (to oracle database, non-xa driver), and I'm developing custom security providers (authentication and role mapping) that need to access database and do some work in transaction.

How should I work with transactions in security providers?
1. Use setAutoCommit(false) on Connection instance and manually call commit and rollback methods?
or 2. Can I obtain UserTransaction object from JNDI and handle transaction with it?
or 3. There is some other way to do that (maybe some custom Weblogic API for this case)?


p.s. Weblogic 12c

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points