temporary queues doesn't cleans then using jms api
--------------------------------------------------

                 Key: QPID-1889
                 URL: https://issues.apache.org/jira/browse/QPID-1889
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.5
            Reporter: Pavel Volkovitskiy


We using rpc style calls with jms api with c++ broker

ie client creates temporary queue for answers and delete it after response:

TemporaryQueue responseQueue = session.createTemporaryQueue();
MessageConsumer messageConsumer = session.createConsumer(responseQueue);

BytesMessage msg = session.createBytesMessage();
msg.setJMSReplyTo(responseQueue);
msg.setJMSCorrelationID(msg.getJMSMessageID());

msg.writeBytes(RPCServer.encode(o));

sender.send(msg);

Message message = messageConsumer.receive(RPC_TIMEOUT);

byte[] body = new byte[(int) ((BytesMessage) message).getBodyLength()];
((BytesMessage) message).readBytes(body);

msg.clearBody();
msg.clearProperties();
msg.reset();

msg = null;

messageConsumer.close();
messageConsumer = null;

responseQueue.delete();
responseQueue = null;

return RPCServer.decode(body);

but then we ends up with lots bindings and queues on message server:
org.apache.qpid.broker:binding:     3615 active bindings
org.apache.qpid.broker:queue:       1807 active queues

most of queues - temporary ones

if we kills client then message server cleans bindings and queues

so it seems that qpid client doesn't removes bindings and prevent message 
server from auto-cleaning temporary queues

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to