Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Context ctx = new InitialContext();

DataSource ds = (DataSource) ctx.lookup("myDataSourceUniqueName");
UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");

See BitronixInitialContextFactory for more details.