Examples of currentTransaction()


Examples of com.arjuna.mw.wst.BusinessActivityManager.currentTransaction()

            final Context baContext ;
            if (businessActivityManager != null)
            {
                final com.arjuna.mwlabs.wst.ba.context.TxContextImple txContext =
                    (com.arjuna.mwlabs.wst.ba.context.TxContextImple)businessActivityManager.currentTransaction() ;
                baContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                baContext = null ;
View Full Code Here

Examples of com.arjuna.mw.wst.TransactionManager.currentTransaction()

            final Context atContext ;
            if (transactionManager != null)
            {
                final com.arjuna.mwlabs.wst.at.context.TxContextImple txContext =
                    (com.arjuna.mwlabs.wst.at.context.TxContextImple)transactionManager.currentTransaction() ;
                atContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                atContext = null ;
View Full Code Here

Examples of com.arjuna.mw.wst11.BusinessActivityManager.currentTransaction()

        /*
         * get the transaction context of this thread:
         */
        String transactionId;
        try {
            transactionId = activityManager.currentTransaction().toString();
        } catch (SystemException e) {
            throw new SetServiceException("Unable to lookup existing BusinesActivity", e);
        }

        /*
 
View Full Code Here

Examples of com.arjuna.mw.wst11.BusinessActivityManager.currentTransaction()

        /*
         * get the transaction context of this thread:
         */
        String transactionId;
        try {
            transactionId = activityManager.currentTransaction().toString();
        } catch (SystemException e) {
            throw new SetServiceException("Unable to lookup existing BusinesActivity", e);
        }

        /*
 
View Full Code Here

Examples of com.arjuna.mw.wst11.TransactionManager.currentTransaction()

            final Context atContext ;
            if (transactionManager != null)
            {
                final TxContextImple txContext =
                    (TxContextImple)transactionManager.currentTransaction() ;
                atContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                atContext = null ;
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.remote.TransactionManagerImple.currentTransaction()

      throws WrongStateException, UnknownTransactionException,
      SystemException
  {
        TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();

        final TxContextImple txContext = (TxContextImple) tm.currentTransaction();
        final String id = txContext.identifier();
        final W3CEndpointReference completionCoordinator = tm.enlistForCompletion(getCompletionParticipant(id, txContext.isSecure()));

        _completionCoordinators.put(id, completionCoordinator);
  }
View Full Code Here

Examples of com.avaje.ebean.EbeanServer.currentTransaction()

    @Transactional
    public void doSomething(EBasicVer v) {
       
        EbeanServer server = Ebean.getServer(null);
       
        inMethodTransaction = server.currentTransaction();
       
        Transaction t = server.createTransaction();
        SqlUpdate u = server.createSqlUpdate("update e_basicver set last_update = last_update+1 where id = ?");
        u.setParameter(1, v.getId());
        int count = server.execute(u, t);
View Full Code Here

Examples of com.exedosoft.plat.bo.DOService.currentTransaction()

    return DEFAULT_FORWARD;
  }

  public static  void removeBO(BOInstance instance) {
    DOService deletes = DOService.getService("DO_Parameter_deletebybouid");
    Transaction t = deletes.currentTransaction();
    t.begin();
    try {
      deletes.invokeUpdate(instance.getUid());
     
      deleteRubbish(instance,"DO_BO_Property_deletebybouid");
View Full Code Here

Examples of com.mysql.clusterj.Session.currentTransaction()

        CLUSTER_CONNECTION_SERVICE = getStringProperty(props, PROPERTY_CLUSTER_CONNECTION_SERVICE);
        createClusterConnectionPool();
        // now get a Session and complete a transaction to make sure that the cluster is ready
        try {
            Session session = getSession(null);
            session.currentTransaction().begin();
            session.currentTransaction().commit();
            session.close();
        } catch (Exception e) {
            if (e instanceof ClusterJException) {
                logger.warn(local.message("ERR_Session_Factory_Impl_Failed_To_Complete_Transaction"));
View Full Code Here

Examples of javax.jdo.PersistenceManager.currentTransaction()

     * @param positive
     */
    protected void compile(String assertion,
            Query query, String queryText, boolean positive) {
        PersistenceManager pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.begin();
        try {
            query.compile();
            if (!positive) {
                fail(assertion,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.