Package javax.jms

Examples of javax.jms.InvalidClientIDException


      }
      catch (HornetQException e)
      {
         if (e.getType() == HornetQExceptionType.DUPLICATE_METADATA)
         {
            throw new InvalidClientIDException("clientID=" + clientID + " was already set into another connection");
         }
      }

      this.clientID = clientID;
      try
View Full Code Here


               // Durable sub
               if (durability != ConsumerDurability.DURABLE)
                  throw new RuntimeException();
               if (connection.getClientID() == null)
               {
                  throw new InvalidClientIDException("Cannot create durable subscription - client ID has not been set");
               }

               if (dest.isTemporary())
               {
                  throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic");
View Full Code Here

            {
               // Durable sub

               if (connection.getClientID() == null)
               {
                  throw new InvalidClientIDException("Cannot create durable subscription - client ID has not been set");
               }

               if (dest.isTemporary())
               {
                  throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic");
View Full Code Here

         String clientID = spec.getClientID();

         // Durable sub
         if (clientID == null)
         {
            throw new InvalidClientIDException("Cannot create durable subscription for " + subscriptionName +
                                               " - client ID has not been set");
         }

         SimpleString queueName = new SimpleString(HornetQDestination.createQueueNameForDurableSubscription(clientID,
                                                                                                            subscriptionName));
View Full Code Here

            {
               // Durable sub

               if (connection.getClientID() == null)
               {
                  throw new InvalidClientIDException("Cannot create durable subscription - client ID has not been set");
               }

               if (dest.isTemporary())
               {
                  throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic");
View Full Code Here

     * @throws InvalidClientIDException if the ClientID of the Connection is a duplicate
     */
    public void registerConnection(BrokerClient client, ConnectionInfo info) throws JMSException {
        String clientId = info.getClientId();
        if (clientIds.containsKey(clientId)) {
            throw new InvalidClientIDException("Duplicate clientId: " + info);
        }
        getBroker().addClient(client, info);
        log.info("Adding new client: " + clientId + " on transport: " + client.getChannel());
        clientIds.put(clientId, client);
    }
View Full Code Here

      }
      if (isValid) {
        // The existing client is valid, so kick the new client
        log.info("Client: " + clientId + " on transport: " + existingClient.getChannel()
            + "' is alive, rejecting new client on transport: " + client.getChannel());
        throw new InvalidClientIDException("Duplicate clientId: " + info);
      } else {
        // A transport error occured or the existing client did not
        // respond in time, so kick it and let the new client connect.
        log.info("Replacing client: " + clientId + " on transport: " + existingClient.getChannel() + " ("
            + ex.getMessage() + ") with client on transport: " + client.getChannel());
View Full Code Here

      }
      if (isValid) {
        // The existing client is valid, so kick the new client
        log.info("Client: " + clientId + " on transport: " + existingClient.getChannel()
            + "' is alive, rejecting new client on transport: " + client.getChannel());
        throw new InvalidClientIDException("Duplicate clientId: " + info);
      } else {
        // A transport error occured or the existing client did not
        // respond in time, so kick it and let the new client connect.
        log.info("Replacing client: " + clientId + " on transport: " + existingClient.getChannel() + " ("
            + ex.getMessage() + ") with client on transport: " + client.getChannel());
View Full Code Here

            {
               // Durable sub

               if (connection.getClientID() == null)
               {
                  throw new InvalidClientIDException("Cannot create durable subscription - client ID has not been set");
               }

               if (dest.isTemporary())
               {
                  throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic");
View Full Code Here

            {
               // Durable sub

               if (connection.getClientID() == null)
               {
                  throw new InvalidClientIDException("Cannot create durable subscription - client ID has not been set");
               }

               if (dest.isTemporary())
               {
                  throw new InvalidDestinationException("Cannot create a durable subscription on a temporary topic");
View Full Code Here

TOP

Related Classes of javax.jms.InvalidClientIDException

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.