ActiveMQ-CPP - Why can't I delete a consumer before a session commit?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ActiveMQ-CPP - Why can't I delete a consumer before a session commit?

cineva
If I delete a consumer before I commit a session I get an access violation error in ActiveMQConsumerKernel.cpp in ActiveMQConsumerKernel::doClose() at this line:
info->setObjectId(this->consumerInfo->getConsumerId());

If this is correct behavior then what it's a recommended way to get a lot of messages with different selectors before a commit? Should a consumer be used for every new selector?

Reply | Threaded
Open this post in threaded view
|

Re: ActiveMQ-CPP - Why can't I delete a consumer before a session commit?

tabish121@gmail.com
On 06/19/2013 05:50 AM, cineva wrote:

> If I delete a consumer before I commit a session I get an access violation
> error in ActiveMQConsumerKernel.cpp in ActiveMQConsumerKernel::doClose() at
> this line:
> info->setObjectId(this->consumerInfo->getConsumerId());
>
> If this is correct behavior then what it's a recommended way to get a lot of
> messages with different selectors before a commit? Should a consumer be used
> for every new selector?
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Why-can-t-I-delete-a-consumer-before-a-session-commit-tp4668344.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
What version are you using?

--
Tim Bish
Sr Software Engineer | RedHat Inc.
[hidden email] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

www.camelone.org : The open source integration conference:

Reply | Threaded
Open this post in threaded view
|

Re: ActiveMQ-CPP - Why can't I delete a consumer before a session commit?

cineva
I'm using ActiveMQ-CPP 3.7.0.
Reply | Threaded
Open this post in threaded view
|

Re: ActiveMQ-CPP - Why can't I delete a consumer before a session commit?

tabish121@gmail.com
On 06/19/2013 06:19 AM, cineva wrote:
> I'm using ActiveMQ-CPP 3.7.0.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Why-can-t-I-delete-a-consumer-before-a-session-commit-tp4668344p4668347.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Sounds like a bug, best to create a jira and attach a test case.

--
Tim Bish
Sr Software Engineer | RedHat Inc.
[hidden email] | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

www.camelone.org : The open source integration conference: