is
 available in JNDI using the name: &quot;java:comp/UserTransaction&quot; or by
 requesting an injection of a <code>jakarta.transaction.UserTransaction</code> object
 using the <code>Resource</code> annotation.<p>

 Example:
 <pre>

 public run() {
   // Begin of task
   InitialContext ctx = new InitialContext();
   UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
   ut.begin();

   // Perform transactional business logic

   ut.commit();
 }
 </pre>
 Tasks can optionally pro