You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (Updated) (JIRA)" <ji...@apache.org> on 2011/10/06 20:42:29 UTC
[jira] [Updated] (QPID-1889) temporary queues doesn't cleans then
using jms api
[ https://issues.apache.org/jira/browse/QPID-1889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith Wall updated QPID-1889:
-----------------------------
Fix Version/s: 0.13
> 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
> Assignee: Keith Wall
> Fix For: 0.13
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org