Package net.timewalker.ffmq3

Examples of net.timewalker.ffmq3.FFMQException


        {
            parentHub.getTransport().send(query);
        }
        catch (PacketTransportException e)
        {
            throw new FFMQException("["+fullId+"] Could not send packet on transport : "+e.toString(),"TRANSPORT_ERROR");
        }
    }
View Full Code Here


   * @throws JMSException
   */
  public final void checkNotClosed() throws JMSException
  {
    if (closed)
      throw new FFMQException("Queue browser is closed","QUEUE_BROWSER_CLOSED");
  }
View Full Code Here

            scheme.equals(PacketTransportType.TCPNIO))
        {
            return new RemoteConnection(providerURL, userName, password, clientID);
        }
        else
            throw new FFMQException("Unknown transport protocol : " + scheme,"INVALID_TRANSPORT_PROTOCOL");
    }
View Full Code Here

        {
            parsedURL = new URI(providerURL);
        }
        catch (URISyntaxException e)
        {
            throw new FFMQException("Malformed provider URL : "+providerURL,"INVALID_PROVIDER_URL");
        }
        if (!parsedURL.isAbsolute())
            throw new FFMQException("Invalid provider URL : "+providerURL,"INVALID_PROVIDER_URL");
       
        return parsedURL;
    }
View Full Code Here

     * Check that the connection is not closed
     */
    protected final void checkNotClosed() throws JMSException
    {
    if (closed)
      throw new FFMQException("Connection is closed","CONNECTION_CLOSED");
    }
View Full Code Here

     * (non-Javadoc)
     * @see javax.jms.Connection#createConnectionConsumer(javax.jms.Destination, java.lang.String, javax.jms.ServerSessionPool, int)
     */
    public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
    {
        throw new FFMQException("Unsupported feature","UNSUPPORTED_FEATURE");
    }
View Full Code Here

     * (non-Javadoc)
     * @see javax.jms.Connection#createDurableConnectionConsumer(javax.jms.Topic, java.lang.String, java.lang.String, javax.jms.ServerSessionPool, int)
     */
    public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
    {
        throw new FFMQException("Unsupported feature","UNSUPPORTED_FEATURE");
    }
View Full Code Here

     * @see javax.jms.TopicConnection#createConnectionConsumer(javax.jms.Topic, java.lang.String, javax.jms.ServerSessionPool, int)
     */
    public synchronized ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
    {
        checkNotClosed();
        throw new FFMQException("Unsupported feature","UNSUPPORTED_FEATURE");
    }
View Full Code Here

     * @see javax.jms.QueueConnection#createConnectionConsumer(javax.jms.Queue, java.lang.String, javax.jms.ServerSessionPool, int)
     */
    public synchronized ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException
    {
        checkNotClosed();
        throw new FFMQException("Unsupported feature","UNSUPPORTED_FEATURE");
    }
View Full Code Here

            this.transport.setListener(this);
            this.transport.start();
        }
        catch (PacketTransportException e)
        {
            throw new FFMQException("Could not establish transport","TRANSPORT_ERROR",e);
        }
       
        this.transportHub = new PacketTransportHub(transport);
        this.transportEndpoint = transportHub.createEndpoint();
       
        log.debug("#"+id+" Opening connection context");
        OpenConnectionQuery query = new OpenConnectionQuery();       
        query.setUserName(userName);
        query.setPassword(password);
        query.setClientID(clientID);
        OpenConnectionResponse response = (OpenConnectionResponse)transportEndpoint.blockingRequest(query);
       
        // Check protocol version
        if (response.getProtocolVersion() != FFMQConstants.TRANSPORT_PROTOCOL_VERSION)
            throw new FFMQException("Transport protocol version mismatch (client is "+FFMQConstants.TRANSPORT_PROTOCOL_VERSION+", server is "+response.getProtocolVersion()+")","PROTOCOL_MISMATCH");
    }
View Full Code Here

TOP

Related Classes of net.timewalker.ffmq3.FFMQException

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.