Re: Consumer does not consume all messages on broker

2010-06-15 Thread Márcio Geovani Jasinski
Adrian, I think you have something wrong in your code. Check your code against ActiveMQ samples: apache-activemq-5.3.1\example\src Also, try start another consumer to see whether it will consume only 60 message as well. Another option is use a different db for teste purpouse - like Kahadb. Give a

Re: activemq-cpp and solutions written in C

2010-06-15 Thread Timothy Bish
On Tue, 2010-06-15 at 15:27 -0700, ararog wrote: > After read cms code I could get a better idea about how to marshal/unmarshal > primitives, but there's a lot of abstraction there that doesn't help me to > understand how to perform some actions on server (connect, subscribe, > publish, consume...)

vm://localhost In memory messages

2010-06-15 Thread cmdr
Hi When running activemq in memory (vm://localhost) it seems that the queue messages are still persisted ssomewhere. Is there a way to persist the message only in memory so the queue messages will dead with the broker. This is for unit test. Regards -- View this message in context: http://old

Re: activemq-cpp and solutions written in C

2010-06-15 Thread ararog
After read cms code I could get a better idea about how to marshal/unmarshal primitives, but there's a lot of abstraction there that doesn't help me to understand how to perform some actions on server (connect, subscribe, publish, consume...) - Regards, Rogério Pereira Araújo http://faces.et

Re: activemq-cpp and solutions written in C

2010-06-15 Thread ararog
Good to know because right now I'm trying to write the most simple scenario, a simple connection that just send one of the commands, the spec page gives some good info about how to marshal data and the commands format, but that's all, no information about what I must pass with each command types t

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
If I leave all files in the default location- apache-activemq-5.3.2/conf- I still get an authentication challenge. Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide vbose wrote: > > Clark, > > If I moved jetty.xml to the activemq home directory, then the

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread vbose
Clark, If I moved jetty.xml to the activemq home directory, then the start-up script choked and it exited with File not found exception. Again, I do not want to do this, I wanted to keep jetty.xml as it is as per the activeMq 5.3.2 tar distribution which is in conf folder. I am using Java Service

Re: ActiveMQ-CPP 3.1.3 Example "No Connection..." Problem

2010-06-15 Thread Timothy Bish
On Tue, 2010-06-15 at 13:19 -0700, v2cg4ss wrote: > When trying to run the example I am getting the following stacktrace message, > I am using the following URI string: tcp://127.0.0.1:61616. The Unit Test > application ran with no errors however, the Integration Test application had > all errors

ActiveMQ-CPP 3.1.3 Example "No Connection..." Problem

2010-06-15 Thread v2cg4ss
When trying to run the example I am getting the following stacktrace message, I am using the following URI string: tcp://127.0.0.1:61616. The Unit Test application ran with no errors however, the Integration Test application had all errors. Any ideas why my connections are refused? No connec

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
The attached files cause a browser authentication challenge on my machine. The jetty.xml is in apache-activemq-5.3.2 - NOT under conf and jetty-realm.properties is in apache-activemq-5.3.2/conf Clark www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide http://ol

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread vbose
I added a reference to securityHandler as you mentioned but again the result is same as it did not ask for login after restarting the broker. cobrien wrote: > > I think you are missing a reference to the security handling in your list > of handlers. > > > Should be something like: > > >

Consumer does not consume all messages on broker

2010-06-15 Thread alisenberg
I sent 12.000 persistent messages to my queue. Jconsole shows the correct queue_size. Also, I can see in my db, the correct number of rows. However, my consumer only gets 60 messages. I try with QueueBrowser and also a simple Consumer.receive() but nothing else is received. I am using 5.3.2 and

Re: Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread cobrien
I think you are missing a reference to the security handling in your list of handlers. Should be something like: http://bit.ly/AMQRefGuide vbose wrote: > > I tried to follow the steps mentioned at the URL > http://www.nighttale.net/activemq/securi

Securing ActiveMQ 5.3.2 Web console

2010-06-15 Thread vbose
I tried to follow the steps mentioned at the URL http://www.nighttale.net/activemq/securing-activemq-531-console.html securing-activemq-531-console to secure ActiveMQ 5.3.2 web console. But it did not work for me. I have installed activeMQ 5.3.2 under /opt/ in our Test Linux servers. Then I con

Re: Howto setup JNDI Federation

2010-06-15 Thread boevink
Ok, this helps a bit... But is does not bind the root context of activeMQ and I have to bind every object seperately. In our default installation of activeMQ there exist already the following objects: QueueConnectionFactory dynamicTopics TopicConnectionFactory ConnectionFactory dynamicQueues If

Re: Does a timeout exist for Consumers?

2010-06-15 Thread Gary Tully
reducing the prefetch can ensure that a minimum of messages are locked in this way. There is a new AbortSlowConsumerStrategy destination policy on trunk(for 5.4) that does what you want, check out https://issues.apache.org/activemq/browse/AMQ-378 you will need to use the latest 5.4-SNAPSHOT to acce

Re: Howto setup JNDI Federation

2010-06-15 Thread boevink
It doesn't have to be populated automatically, it ok to have a little jndi app. But how do I bind a ActiveMQ context to an object within my LDAP server? I have a DirContext for my LDAP Server called "ldapctx". Now i would like to bind an activeMQ context like this: Properties envJms = new Proper

Re: how to detect on server side when queue manager has gone away?

2010-06-15 Thread Timothy Bish
On Tue, 2010-06-15 at 10:53 +0100, andrew.mar...@uk.bnpparibas.com wrote: > I am using AMQ-cpp without the failover feature, good though that feature > is. I am concerned with hwo to detect when the Q mgr has gone away. On the > client side I have found that if I send a message when the broker is

Re: Howto setup JNDI Federation

2010-06-15 Thread Joe Fernandez
I've attached a PDF that illustrates how to bind and lookup AMQ objects to and from an LDAP server using JNDI. http://old.nabble.com/file/p28891251/AmqLdapJndi.pdf AmqLdapJndi.pdf Joe ActiveMQ Ref Guide - http://bit.ly/AMQRefGuide boevink wrote: > > We are using an LDAP server for registe

Does a timeout exist for Consumers?

2010-06-15 Thread Luis Matos
In case a consumer can't process a message but is still active, the pre-fetched messages for that consumer get stuck on activemq. Is there no way to setup a consumer timeout, i.e., after some time activemq "gives up" on that consumer and sends them to another consumer? -- View this message in c

Re: Priority message

2010-06-15 Thread astlm
I'll wait to camel 2.4.0 released or active-mq version wich support JMSPriority. Thank you for your help. James.Strachan wrote: > > On 15 June 2010 13:03, astlm wrote: >> >> The first, thank you for the answer. >> >> >> James.Strachan wrote: >>> >>> On 15 June 2010 07:54, astlm wrote:

Re: Priority message

2010-06-15 Thread James Strachan
On 15 June 2010 13:03, astlm wrote: > > The first, thank you for the answer. > > > James.Strachan wrote: >> >> On 15 June 2010 07:54, astlm wrote: >>> >>> I'm sorry but I did not understand how Resequencer work on, I have read >>> in >>> more detail how it works, and although not ideal, because o

Re: Howto setup JNDI Federation

2010-06-15 Thread Gary Tully
There is no easy way to automatically populate a third party jndi provider with ActriveMQ objects, you would need to code up a little jndi app that can bind the objects that you need. It would be a neat extension to activemq-admin though if you want to contribute. see a previous discussion for som

Re: Priority message

2010-06-15 Thread astlm
The first, thank you for the answer. James.Strachan wrote: > > On 15 June 2010 07:54, astlm wrote: >> >> I'm sorry but I did not understand how Resequencer work on, I have read >> in >> more detail how it works, and although not ideal, because only order a >> number of messages or messages re

Re: design question about temporary queues

2010-06-15 Thread andrew . marlow
Yes thanks. It was on that web page I found this: The best way to implement request-response over JMS is to create a temporary queue and consumer per client on startup, set JMSReplyTo property on each message to the temporary queue and then use a correlationID on each message to correlate reque

how to detect on server side when queue manager has gone away?

2010-06-15 Thread andrew . marlow
I am using AMQ-cpp without the failover feature, good though that feature is. I am concerned with hwo to detect when the Q mgr has gone away. On the client side I have found that if I send a message when the broker is no longer running I get an exception. This enables me to test and recover on

Re: schedule the deliver time of the message

2010-06-15 Thread Dejan Bosanac
Hi, take a look at http://activemq.apache.org/delay-and-schedule-message-delivery.html it will be available in the next release of ActiveMQ, but you can test it in the current trunk. Cheers -- Dejan Bosanac - http://twitter.com

schedule the deliver time of the message

2010-06-15 Thread mzha
Hi all, is there any feature of activemq broker to schedule the deliver time of a message? Something like - deliver the message at 8pm to the consumer. Thank u in advance, mzha -- View this message in context: http://old.nabble.com/schedule-the-deliver-time-of-the-message-tp2816p281

AW: Pure Master / Slave - start order

2010-06-15 Thread Andreas.Weber
Hi Bruce/Joe, thanks for the information. Damned, I was so glad to see the start order problem being gone by using the failover protocol in the masterConnectorURI. But unfortunately issue (https://issues.apache.org/activemq/browse/AMQ-2743) is right, failover to slave does not work any more afte

Re: Priority message

2010-06-15 Thread James Strachan
On 15 June 2010 07:54, astlm wrote: > > I'm sorry but I did not understand how Resequencer work on, I have read in > more detail how it works, and although not ideal, because only order a > number of messages or messages received over a period time, It can be a > solution. Thats how priority queu

Howto setup JNDI Federation

2010-06-15 Thread boevink
We are using an LDAP server for registering remote objects that can be retrieved through JNDI. This is our Global Initial Context. Is there a way to retrieve ActiveMQ objects through this global Initial Context instead of having the need to configure a seperate Initial Context for ActiveMQ's inte

Re: design question about temporary queues

2010-06-15 Thread Dejan Bosanac
Hi Andrew, I guess you looked at http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html You can do the thing with correlationId but using normal queues and persistent messages if your requirement is not to lose any replies. In that case you don't use selectors, but your

design question about temporary queues

2010-06-15 Thread andrew . marlow
I am using AMQ-cpp for a client-server system where my server will be long running and in the meantime the queue manager may be restarted. So far in my implementation I have been using one request Q upon which all requests are rcvd, and temporary Qs for the replies. When all is well this works

Re: How to enable HTTPS when SSL is working ?

2010-06-15 Thread Dejan Bosanac
Hi, can you raise an enhancement request in Jira to add support for https transport and configuration? Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Mo