Examples of createSession()


Examples of org.hornetq.core.client.impl.ClientSessionFactoryInternal.createSession()

      locator.setBlockOnNonDurableSend(true);
      locator.setBlockOnDurableSend(true);
      locator.setReconnectAttempts(-1);

      ClientSessionFactoryInternal sf = createSessionFactoryAndWaitForTopology(locator, 2);
      ClientSession session = sf.createSession(!transacted, !transacted, 0);

      try
      {

         session.createQueue(PagingFailoverTest.ADDRESS, PagingFailoverTest.ADDRESS, true);
View Full Code Here

Examples of org.huihoo.willow.session.SessionManager.createSession()

      WorkflowParticipant participant = realmDatabase.authenticate(username, password);
      if (participant == null)
      {
        throw new WorkflowException("login workflow  engine unsuccessfully.username=" + username + ",password=" + password);
      }
      this.session = manager.createSession();
      this.session.setParticipant(participant);
    }
  }
  private boolean authenticate(WorkflowService workflowService, String userid, String password) throws WorkflowException
  {
View Full Code Here

Examples of org.jboss.as.ejb3.component.stateful.StatefulSessionComponent.createSession()

        final EJBComponent component = ejbInfo.getEjbComponent();
        if (!(component instanceof StatefulSessionComponent)) {
            throw MESSAGES.notStatefulSessionBean(beanName, appName, moduleName, distinctName);
        }
        final StatefulSessionComponent statefulComponent = (StatefulSessionComponent) component;
        final SessionID sessionID = statefulComponent.createSession();
        return new StatefulEJBLocator<T>(viewType, appName, moduleName, beanName, distinctName, sessionID, statefulComponent.getCache().getStrictAffinity(), this.getNodeName());
    }

    private Object clone(final Class<?> target, final ObjectCloner cloner, final Object object, final boolean allowPassByReference) {
        if (object == null) {
View Full Code Here

Examples of org.jboss.as.web.session.mocks.MockClusteredSessionManager.createSession()

        MockValve mockValve = new MockValve();

        jvmRouteValve.setNext(mockValve);

        MockRequest req = new MockRequest(mgr);
        Session session = mgr.createSession(NON_FAILOVER_ID);
        req.setSession(session);
        req.setRequestedSessionId(session.getId());

        Response res = new Response();
View Full Code Here

Examples of org.jboss.ejb3.proxy.container.StatefulSessionInvokableContext.createSession()

      // Get a new Session ID from the Container
      Serializable sessionId = null;
      try
      {
         sessionId = container.createSession();
      }
      catch (NotBoundException e)
      {
         throw new RuntimeException("Could not obtain a new Session ID from SFSB Container \"" + container + "\"", e);
      }
View Full Code Here

Examples of org.jboss.ejb3.proxy.spi.container.StatefulSessionFactory.createSession()

      // Get a new Session ID from the Container
      Serializable sessionId = null;
      try
      {
         sessionId = container.createSession();
      }
      catch (NotBoundException e)
      {
         throw new RuntimeException("Could not obtain a new Session ID from SFSB Container \"" + container + "\"", e);
      }
View Full Code Here

Examples of org.jboss.ejb3.session.SessionContainer.createSession()

   }

   public Object createProxyBusiness()
   {
      SessionContainer sfsb = (SessionContainer) getContainer();
      Object id = sfsb.createSession();
      return this.createProxyBusiness(id);
   }
  
   public EJBLocalObject createProxyEjb21(String businessInterfaceType)
   {
View Full Code Here

Examples of org.jboss.ejb3.test.cachepassivation.MockStatefulContainer.createSession()

      {
         container.create();
         container.setJaccContextId("none");
         container.start();
        
         Object id = container.createSession();
        
         StatefulBeanContext ctx = container.getCache().get(id, false);
        
         System.out.println("inUse = " + ctx.isInUse());
         MockBean bean = (MockBean) ctx.getInstance();
View Full Code Here

Examples of org.jboss.jms.client.JBossConnection.createSession()

         (JBossConnection) getConnection(new Connection[]{conn1, conn2}, 1);

      conn.setClientID("testClient");
      conn.start();

      JBossSession session = (JBossSession) conn.createSession(true, Session.SESSION_TRANSACTED);
      ClientSessionDelegate clientSessionDelegate = (ClientSessionDelegate) session.getDelegate();
      SessionState sessionState = (SessionState) clientSessionDelegate.getState();

      MessageConsumer consumerHA = session.createDurableSubscriber((Topic) destination, "T1");
      JBossMessageConsumer jbossConsumerHA = (JBossMessageConsumer) consumerHA;
View Full Code Here

Examples of org.jboss.test.cluster.web.jvmroute.MockJBossManager.createSession()

     
      MockValve mockValve = new MockValve();
     
      jvmRouteValve.setNext(mockValve);
     
      Session session = mgr.createSession(NON_FAILOVER_ID);
      MockRequest req = new MockRequest();
      req.setSession(session.getSession());
      req.setRequestedSessionId(session.getId());
     
      Response res = new Response();
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.