You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james nomingo (JIRA)" <ji...@apache.org> on 2006/12/08 22:34:02 UTC

[jira] Created: (AMQCPP-23) active-cpp persistent problem

active-cpp persistent problem
-----------------------------

                 Key: AMQCPP-23
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Stomp
    Affects Versions: 1.0
         Environment: ActiveMQ 4.0.2
activemq-cpp-1.0
fedora 5
            Reporter: james nomingo
         Assigned To: Nathan Mittler


I'm struggling with persistent option in activemq-cpp client. (my java client does the trick)
part of my code looks like:

producer->setDeliveryMode( DeliveryMode::PERSISTANT );

The problem is after I send a message, and stop the broker. The message is gone.
If I send a lot of message exceeding the memory size the broker handles, I got resource unavailable exception.

It looks to me the message I send over using cpp doesn't instruct the broker to use persistent.
I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Commented: (AMQCPP-23) active-cpp persistent problem

Posted by tabish121 <Ti...@Sensis.com>.

AMQ CPP doesn't have direct interaction with the broker and its DB.  If the
broker startup results are truly incorrect then its more than likely an
issue there.  If you can create tests cases to demonstrate this issue in
steps to reproduce it, then I'd write a new issue and attach those there.


amq user wrote:
> 
> it worked! Thanks!
> 
> But I have a observation. When the broker starts, it shows the wrong total
> recovered message number from Journal. This may not be the activemq-cpp
> related. Can you help to verify?
> This happens when you cosumed all the messages, and restart the broker. It
> shows non-zero message recovered.
> 
> 
> On 12/11/06, Timothy Bish (JIRA) <ji...@apache.org> wrote:
>>
>>     [
>> https://issues.apache.org/activemq/browse/AMQCPP-23?page=comments#action_37647]
>>
>> Timothy Bish commented on AMQCPP-23:
>> ------------------------------------
>>
>> I've checked a fix into trunk.  Seems to work for me, try it out if you
>> can and let me know if it resolves the issue.
>>
>> > active-cpp persistent problem
>> > -----------------------------
>> >
>> >                 Key: AMQCPP-23
>> >                 URL:
>> https://issues.apache.org/activemq/browse/AMQCPP-23
>> >             Project: ActiveMQ C++ Client
>> >          Issue Type: Bug
>> >          Components: Stomp
>> >    Affects Versions: 1.0
>> >         Environment: ActiveMQ 4.0.2
>> > activemq-cpp-1.0
>> > fedora 5
>> >            Reporter: james nomingo
>> >         Assigned To: Timothy Bish
>> >             Fix For: 1.1
>> >
>> >
>> > I'm struggling with persistent option in activemq-cpp client. (my java
>> client does the trick)
>> > part of my code looks like:
>> > producer->setDeliveryMode( DeliveryMode::PERSISTANT );
>> > The problem is after I send a message, and stop the broker. The message
>> is gone.
>> > If I send a lot of message exceeding the memory size the broker
>> handles,
>> I got resource unavailable exception.
>> > It looks to me the message I send over using cpp doesn't instruct the
>> broker to use persistent.
>> > I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> If you think it was sent incorrectly contact one of the administrators:
>> https://issues.apache.org/activemq/secure/Administrators.jspa
>> -
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28AMQCPP-23%29-active-cpp-persistent-problem-tf2783258.html#a7833794
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: [jira] Commented: (AMQCPP-23) active-cpp persistent problem

Posted by amq user <am...@gmail.com>.
it worked! Thanks!

But I have a observation. When the broker starts, it shows the wrong total
recovered message number from Journal. This may not be the activemq-cpp
related. Can you help to verify?
This happens when you cosumed all the messages, and restart the broker. It
shows non-zero message recovered.


On 12/11/06, Timothy Bish (JIRA) <ji...@apache.org> wrote:
>
>     [
> https://issues.apache.org/activemq/browse/AMQCPP-23?page=comments#action_37647]
>
> Timothy Bish commented on AMQCPP-23:
> ------------------------------------
>
> I've checked a fix into trunk.  Seems to work for me, try it out if you
> can and let me know if it resolves the issue.
>
> > active-cpp persistent problem
> > -----------------------------
> >
> >                 Key: AMQCPP-23
> >                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
> >             Project: ActiveMQ C++ Client
> >          Issue Type: Bug
> >          Components: Stomp
> >    Affects Versions: 1.0
> >         Environment: ActiveMQ 4.0.2
> > activemq-cpp-1.0
> > fedora 5
> >            Reporter: james nomingo
> >         Assigned To: Timothy Bish
> >             Fix For: 1.1
> >
> >
> > I'm struggling with persistent option in activemq-cpp client. (my java
> client does the trick)
> > part of my code looks like:
> > producer->setDeliveryMode( DeliveryMode::PERSISTANT );
> > The problem is after I send a message, and stop the broker. The message
> is gone.
> > If I send a lot of message exceeding the memory size the broker handles,
> I got resource unavailable exception.
> > It looks to me the message I send over using cpp doesn't instruct the
> broker to use persistent.
> > I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/activemq/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] Commented: (AMQCPP-23) active-cpp persistent problem

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-23?page=comments#action_37647 ] 
            
Timothy Bish commented on AMQCPP-23:
------------------------------------

I've checked a fix into trunk.  Seems to work for me, try it out if you can and let me know if it resolves the issue.

> active-cpp persistent problem
> -----------------------------
>
>                 Key: AMQCPP-23
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.0
>         Environment: ActiveMQ 4.0.2
> activemq-cpp-1.0
> fedora 5
>            Reporter: james nomingo
>         Assigned To: Timothy Bish
>             Fix For: 1.1
>
>
> I'm struggling with persistent option in activemq-cpp client. (my java client does the trick)
> part of my code looks like:
> producer->setDeliveryMode( DeliveryMode::PERSISTANT );
> The problem is after I send a message, and stop the broker. The message is gone.
> If I send a lot of message exceeding the memory size the broker handles, I got resource unavailable exception.
> It looks to me the message I send over using cpp doesn't instruct the broker to use persistent.
> I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (AMQCPP-23) active-cpp persistent problem

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-23?page=all ]

Timothy Bish updated AMQCPP-23:
-------------------------------

    Fix Version/s: 1.1

> active-cpp persistent problem
> -----------------------------
>
>                 Key: AMQCPP-23
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.0
>         Environment: ActiveMQ 4.0.2
> activemq-cpp-1.0
> fedora 5
>            Reporter: james nomingo
>         Assigned To: Timothy Bish
>             Fix For: 1.1
>
>
> I'm struggling with persistent option in activemq-cpp client. (my java client does the trick)
> part of my code looks like:
> producer->setDeliveryMode( DeliveryMode::PERSISTANT );
> The problem is after I send a message, and stop the broker. The message is gone.
> If I send a lot of message exceeding the memory size the broker handles, I got resource unavailable exception.
> It looks to me the message I send over using cpp doesn't instruct the broker to use persistent.
> I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (AMQCPP-23) active-cpp persistent problem

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-23?page=all ]

Timothy Bish resolved AMQCPP-23.
--------------------------------

    Resolution: Fixed

Messages are now correctly tagged as persistent or not persistent using Stomp Message headers.

The Stomp transport was expecting string "true" or "false" we were sending 0 or 1 instead.

> active-cpp persistent problem
> -----------------------------
>
>                 Key: AMQCPP-23
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.0
>         Environment: ActiveMQ 4.0.2
> activemq-cpp-1.0
> fedora 5
>            Reporter: james nomingo
>         Assigned To: Timothy Bish
>             Fix For: 1.1
>
>
> I'm struggling with persistent option in activemq-cpp client. (my java client does the trick)
> part of my code looks like:
> producer->setDeliveryMode( DeliveryMode::PERSISTANT );
> The problem is after I send a message, and stop the broker. The message is gone.
> If I send a lot of message exceeding the memory size the broker handles, I got resource unavailable exception.
> It looks to me the message I send over using cpp doesn't instruct the broker to use persistent.
> I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (AMQCPP-23) active-cpp persistent problem

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-23?page=all ]

Timothy Bish reassigned AMQCPP-23:
----------------------------------

    Assignee: Timothy Bish  (was: Nathan Mittler)

> active-cpp persistent problem
> -----------------------------
>
>                 Key: AMQCPP-23
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-23
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.0
>         Environment: ActiveMQ 4.0.2
> activemq-cpp-1.0
> fedora 5
>            Reporter: james nomingo
>         Assigned To: Timothy Bish
>             Fix For: 1.1
>
>
> I'm struggling with persistent option in activemq-cpp client. (my java client does the trick)
> part of my code looks like:
> producer->setDeliveryMode( DeliveryMode::PERSISTANT );
> The problem is after I send a message, and stop the broker. The message is gone.
> If I send a lot of message exceeding the memory size the broker handles, I got resource unavailable exception.
> It looks to me the message I send over using cpp doesn't instruct the broker to use persistent.
> I'm using ActiveMQ 4.0.2, and activemq-cpp-1.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira