Package org.apache.qpid.server.queue

Examples of org.apache.qpid.server.queue.AMQQueue.bind()


                throw new JMException("Queue \"" + queueName + "\" is not registered with the exchange.");
            }

            try
            {
                queue.bind(FanoutExchange.this, new AMQShortString(binding), null);
            }
            catch (AMQException ex)
            {
                throw new MBeanException(ex);
            }
View Full Code Here


                if (binding.getRoutingKey() == null || binding.getRoutingKey().equals(""))
                {
                    throw new ConfigurationException("Unknown binding not specified on url:" + binding);
                }

                queue.bind(binding.getRoutingKey(), defaultExchange);
            }
            _logger.info("Queue '" + queue.getName() + "' bound to exchange:" + binding.getExchangeName() + " RK:'" + binding.getRoutingKey() + "'");
        }
    }
}
View Full Code Here

            }

            try
            {
                registerQueue(binding, queue, null);
                queue.bind(binding, DestNameExchange.this);
            }
            catch (AMQException ex)
            {
                throw new MBeanException(ex);
            }
View Full Code Here

        if (exch == null)
        {
            throw body.getChannelException(AMQConstant.NOT_FOUND.getCode(), "Exchange " + body.exchange + " does not exist.");
        }
        exch.registerQueue(body.routingKey, queue, body.arguments);
        queue.bind(body.routingKey, exch);
        if (_log.isInfoEnabled())
        {
            _log.info("Binding queue " + queue + " to exchange " + exch + " with routing key " + body.routingKey);
        }
        if (!body.nowait)
View Full Code Here

                throw new JMException("Queue \"" + queueName + "\" is not registered with the exchange.");

            try
            {
                registerQueue(binding, queue, null);
                queue.bind(binding, DestWildExchange.this);
            }
            catch (AMQException ex)
            {
                throw new MBeanException(ex);
            }
View Full Code Here

                queueRegistry.registerQueue(queue);
                if (autoRegister)
                {
                    Exchange defaultExchange = exchangeRegistry.getExchange("amq.direct");
                    defaultExchange.registerQueue(body.queue, queue, null);
                    queue.bind(body.queue, defaultExchange);
                    _log.info("Queue " + body.queue + " bound to default exchange");
                }
            }
            //set this as the default queue on the channel:
            protocolSession.getChannel(evt.getChannelId()).setDefaultQueue(queue);
View Full Code Here

                                                  "Queue " + queue.getName() + " is exclusive, but not created on this Connection.");
            }

            if (!exch.isBound(routingKey, body.getArguments(), queue))
            {
                queue.bind(exch, routingKey, body.getArguments());
            }
        }
        catch (AMQInvalidRoutingKeyException rke)
        {
            throw body.getChannelException(AMQConstant.INVALID_ROUTING_KEY, routingKey.toString());
View Full Code Here

            }

            CurrentActor.set(new ManagementActor(_logActor.getRootMessageLogger()));
            try
            {
                queue.bind(DirectExchange.this, new AMQShortString(binding), null);
            }
            catch (AMQException ex)
            {
                throw new MBeanException(ex);
            }
View Full Code Here

            }

            CurrentActor.set(new ManagementActor(_logActor.getRootMessageLogger()));
            try
            {
                queue.bind(FanoutExchange.this, new AMQShortString(BINDING_KEY_SUBSTITUTE), null);
            }
            catch (AMQException ex)
            {
                throw new MBeanException(ex);
            }
View Full Code Here

                    AMQShortString routingKey = new AMQShortString(method.getBindingKey());
                    FieldTable fieldTable = FieldTable.convertToFieldTable(method.getArguments());

                    if (!exchange.isBound(routingKey, fieldTable, queue))
                    {
                        queue.bind(exchange, routingKey, fieldTable);

                    }
                    else
                    {
                        // todo
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.