Package org.jboss.jms.server.endpoint

Examples of org.jboss.jms.server.endpoint.ConnectionEndpoint


   {
      Map endpoints = (Map)jmsClients.get(jmsClientVMId);
     
      if (endpoints != null)
      {
         ConnectionEndpoint e = (ConnectionEndpoint)endpoints.remove(remotingClientSessionID);

         if (e != null)
         {
            endpoints.remove(e);
            activeConnectionEndpoints.remove(e);
View Full Code Here


         List sces = new ArrayList();

         for(Iterator i = endpoints.entrySet().iterator(); i.hasNext(); )
         {
            Map.Entry entry = (Map.Entry)i.next();
            ConnectionEndpoint sce = (ConnectionEndpoint)entry.getValue();
            sces.add(sce);
         }

         // Now close the end points - this will result in a callback into unregisterConnection
         // to remove the data from the jmsClients and sessions maps.
         // Note we do this outside the loop to prevent ConcurrentModificationException

         for(Iterator i = sces.iterator(); i.hasNext(); )
         {
            ConnectionEndpoint sce = (ConnectionEndpoint)i.next();

            try
            {
               sce.closing();
               sce.close();
               log.debug("cleared up state for connection " + sce);
            }
            catch (JMSException e)
            {
               log.error("Failed to close connection", e);
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new ConnectionGetPreparedTransactionsResponse(endpoint.getPreparedTransactions());
   }
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.start();
     
      return null;
   }
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new ConnectionGetClientIDResponse(endpoint.getClientID());
   }
View Full Code Here

      clientID = is.readUTF();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.setClientID(clientID);
     
      return null;
   }
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.stop();
     
      return null;
   }
View Full Code Here

      checkForDuplicates = is.readBoolean();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.sendTransaction(req, checkForDuplicates);
     
      return null;
   }
View Full Code Here

      size = is.readInt();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
      return new ConnectionGetIDBlockResponse(endpoint.getIdBlock(size));          
   }
View Full Code Here

      xa = is.readBoolean();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      ConnectionEndpoint endpoint =
         (ConnectionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new ConnectionCreateSessionDelegateResponse((ClientSessionDelegate)endpoint.createSessionDelegate(transacted, acknowledgmentMode, xa));        
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.ConnectionEndpoint

Copyright © 2018 www.massapicom. 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.