Examples of reconnect()


Examples of org.hibernate.classic.Session.reconnect()

    t = s.beginTransaction();
    Foo foo = (Foo) s.get(Foo.class, id);
    t.commit();
    s.disconnect();

    s.reconnect();
    t = s.beginTransaction();
    s.flush();
    t.commit();
    s.close();
View Full Code Here

Examples of org.hibernate.classic.Session.reconnect()

    Transaction tx = s.beginTransaction();
    s.find("from Fo");
    tx.commit();
    Connection c = s.disconnect();
    assertTrue( c!=null );
    s.reconnect(c);
    tx = s.beginTransaction();
    s.find("from Fo");
    tx.commit();
    assertTrue( s.close()==c );
    c.close();
View Full Code Here

Examples of org.jboss.as.server.mgmt.domain.HostControllerClient.reconnect()

            // Get the host-controller server client
            final ServiceContainer container = containerFuture.get();
            final HostControllerClient client = getRequiredService(container, HostControllerConnectionService.SERVICE_NAME, HostControllerClient.class);
            // Reconnect to the host-controller
            client.reconnect(hostName, port, asAuthKey, managementSubsystemEndpoint);

        } catch (InterruptedIOException e) {
            Thread.interrupted();
            // ignore
        } catch (EOFException e) {
View Full Code Here

Examples of org.jboss.as.server.mgmt.domain.HostControllerServerClient.reconnect()

            // Get the host-controller server client
            final ServiceContainer container = containerFuture.get();
            final ServiceController<?> controller = container.getRequiredService(HostControllerServerClient.SERVICE_NAME);
            final HostControllerServerClient client = (HostControllerServerClient) controller.getValue();
            // Reconnect to the host-controller
            client.reconnect(hostName, port, asAuthKey);

        } catch (InterruptedIOException e) {
            Thread.interrupted();
            // ignore
        } catch (EOFException e) {
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.listener.ConnectionCacheListener.reconnect()

            cmToConnectionsMapIterator.next();

         ConnectionCacheListener cm = entry.getKey();
         CopyOnWriteArrayList<ConnectionRecord> conns =  entry.getValue();

         cm.reconnect(conns, unsharableResources);
      }
   }

   /**
    * Disconnect connections.
View Full Code Here

Examples of org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.reconnect()

        }
      }
    }
        processInstance.internalSetNodeInstanceCounter(nodeInstanceCounter);
        if (wm != null) {
            processInstance.reconnect();
        }
        return processInstance;
    }

    protected abstract WorkflowProcessInstanceImpl createProcessInstance();
View Full Code Here

Examples of org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.reconnect()

          processInstance.disconnect();
          processInstance.setProcess(oldProcess);
          updateNodeInstances(processInstance, nodeMapping);
          processInstance.setKnowledgeRuntime((InternalKnowledgeRuntime) kruntime);
          processInstance.setProcess(process);
          processInstance.reconnect();
    }
    }
   
    private static void updateNodeInstances(NodeInstanceContainer nodeInstanceContainer, Map<String, Long> nodeMapping) {
        for (NodeInstance nodeInstance: nodeInstanceContainer.getNodeInstances()) {
View Full Code Here

Examples of org.rzo.yajsw.wrapper.WrappedProcess.reconnect()

    WrappedProcess w = WrappedProcessFactory.createProcess(conf);

    System.out.println("************* RECONNECTING WRAPPER TO PID  " + pid + " ***********************");
    System.out.println();

    if (w.reconnect(pid))
      System.out.println("Connected to PID " + pid);
    else
      System.out.println("NOT connected to PID " + pid);
    _exitOnTerminate = false;

View Full Code Here

Examples of reactor.net.Reconnect.reconnect()

    @Test
    public void testDefaultReconnect() {
        Reconnect rec = new IncrementalBackoffReconnectSpec().get();

        InetSocketAddress a1 = new InetSocketAddress("129.168.0.1",1001);
        Tuple2<InetSocketAddress, Long> t1 = rec.reconnect(a1, 0);

        assertEquals(IncrementalBackoffReconnectSpec.DEFAULT_INTERVAL,t1.getT2().longValue());
        assertEquals(a1,t1.getT1());

        InetSocketAddress a2 = new InetSocketAddress("129.168.0.1",1001);
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.