Log.info("Bound UserTransaction to java:comp/"+transaction.getJndiName());
Log.debug("Bound UserTransaction to java:comp/"+transaction.getJndiName());
    public void bindUserTransaction () throws Exception    {        Transaction transaction = Transaction.getTransaction (NamingEntry.SCOPE_LOCAL);        if (transaction != null)        {            //special case, still need to bind it because it has to be bound to java:comp instead            //of java:comp/env            transaction.bindToEnv();            return;        }                transaction = Transaction.getTransaction(NamingEntry.SCOPE_GLOBAL);        if (transaction != null)        {            transaction.bindToEnv();            Log.info("Bound UserTransaction to java:comp/"+transaction.getJndiName());        }    }