Pending Messages are shown in ActiveMQ

2008-10-29 Thread Dhirendra Rai
Hi, I am using activemq 5.1.0 with spring 2.3 . The isssue I am facing is : At the time of load testing some set of messages are not getting consumed by the consumer they are shown in the pending list. e.g Total Messages=200, Received Messages=180 Pending Messages=20. The pending messages count

Re: Unable to recieve messages in vs2005-activemq-example for v2.2.1 of ActiveMQ-CPP API

2008-10-29 Thread beeeph
I'm using the stock example code for v2.2.1. Thanks, Joe Timothy Bish wrote: > > On Wed, 2008-10-29 at 10:52 -0700, beeeph wrote: >> I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and >> running. In the console window, it shows the messages are being sent, >> though they'r

Re: Unable to recieve messages in vs2005-activemq-example for v2.2.1 of ActiveMQ-CPP API

2008-10-29 Thread Timothy Bish
On Wed, 2008-10-29 at 10:52 -0700, beeeph wrote: > I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and > running. In the console window, it shows the messages are being sent, > though they're not being received. I'm new to ActiveMQ and don't even know > where to begin troublesh

Re: NMS: Dispose usage

2008-10-29 Thread Jim Gomes
Thanks, Vadim. Let me take a look at it and see what's going on. In the meantime, can you reproduce an error with the code as it is currently written? On 10/28/08, Vadim Chekan <[EMAIL PROTECTED]> wrote: > I noticed that all over NMS code the Dispose(bool) is implemented so > that it will call

Unable to recieve messages in vs2005-activemq-example for v2.2.1 of ActiveMQ-CPP API

2008-10-29 Thread beeeph
I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and running. In the console window, it shows the messages are being sent, though they're not being received. I'm new to ActiveMQ and don't even know where to begin troubleshooting. Any thoughts/suggestions/good place to start wo

Re: thread deadlock issue in NMS

2008-10-29 Thread Jim Gomes
Thanks for following up on is. If you are able to narrow this down, it would be much appreciated. I know threading issues can be hard to reproduce, especially when other things take your attention away. I'll try and take a look again at some of the threading code to see if I can find any obvious

404 on admin page

2008-10-29 Thread Ian Christian
Hi all, I'm having issues getting the jetty admin interface working when running activemq from maven with 'mvn activemq:run'. I get "2008-10-29 16:32:27.474::INFO: [EMAIL PROTECTED] at http://0.0.0.0:8161/admin"; in the output, however hitting that URL gives me a 404. My activemq.xml and pom.xm

Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-29 Thread Rob Davies
Hi Eugeny, As James stated earlier - you need to set the prefetch - but the value should be 0 - this will make ActiveMQ 'pull' rather than 'push' cheers, Rob Rob Davies http://fusesource.com http://rajdavies.blogspot.com/ On 29 Oct 2008, at 15:07, Eugeny N Dzhurinsky wrote: On Tue, Oct

Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?

2008-10-29 Thread Eugeny N Dzhurinsky
On Tue, Oct 28, 2008 at 05:44:26PM +, James Strachan wrote: > 2008/10/28 Eugeny N Dzhurinsky <[EMAIL PROTECTED]>: > > Hello! > > > > I am facing some strange issue with acknowledge mode in ActiveMQ. After > > reading the specs, I realized the broker will never deliver a message to the > > consu

Re: thread deadlock issue in NMS

2008-10-29 Thread mkeenan
semog wrote: > > Thanks. A helpful bit of information is a comparison of NMS 1.1 to NMS > 1.0, > since there was some major re-work done on the threading code between the > two versions. Would you be able to test these different configurations? > I don't think I can do a apples-to-apples com

Re: thread deadlock issue in NMS

2008-10-29 Thread mkeenan
vchekan wrote: > > Just curious, are all of your sessions, consumers, etc wrapped in > "using" clause? > Herein lies some of the difficulty with this particular issue. I'm using Spring.NET framework to abstract away all the details of the underlying message system. My "consumers" are straight

Re: Loadbalancing MessageProducer

2008-10-29 Thread James Strachan
2008/10/29 SarcasmMonster <[EMAIL PROTECTED]>: > > I came across the fanout protocol while looking for the failover. But from my > understanding, it will send every message to every broker, rather than > rotating between them. So when I send a message, it will go to every broker, > rather than just

Re: Loadbalancing MessageProducer

2008-10-29 Thread SarcasmMonster
I came across the fanout protocol while looking for the failover. But from my understanding, it will send every message to every broker, rather than rotating between them. So when I send a message, it will go to every broker, rather than just a random one. Is this right? -- View this message in c

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
I think you are off the hook..;)Seems I need to create a new string which has the explicit utf8 encoding after i receive values from activemq. Thanks for helping On Wed, Oct 29, 2008 at 12:41 PM, Lars Eirik Rønning <[EMAIL PROTECTED]>wrote: > But does this mean that when sending something over t

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
But does this mean that when sending something over the wire using either stomp or the regual wiringmethod for activemq that values are not respected as utf8? This seems strange.. Am i the first one who experiences this here..? Please give me a url so i can file a case if needed. On Wed, Oct 29,

Re: Loadbalancing MessageProducer

2008-10-29 Thread Rob Davies
You need to look at this: http://activemq.apache.org/fanout-transport-reference.html cheers, Rob Rob Davies http://fusesource.com http://rajdavies.blogspot.com/ On 28 Oct 2008, at 20:03, SarcasmMonster wrote: The point was to load balance the JMS broker, that way we don't hammer the sam

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Dejan Bosanac
Can you file a Jira issue, so somebody can take a look at it? Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net � wrote: > When i tried to set the char

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Dejan Bosanac
This a MySQL limitation. You have two options, - set the size of fields that creates the primary key on some smaller value (say 100) - create this table in latin1 by adding "DEFAULT CHARACTER SET latin1" at the end of query. This should work fine, since this table has nothing to do with content

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
When i tried to set the character encoding for mysql to utf8 using windows, i did not get the error. (turned out that the operation which failed was a alter, so it cannot be directly compared) However i still get the following exception when i receive the values from activemq (this is somehow solv

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
This is the error we get: mysql> CREATE TABLE ACTIVEMQ_ACKS( CONTAINER VARCHAR(250) NOT NULL, SUB_DEST VARCHAR(250), CLIENT_ID VARCHAR(250) NOT NULL, SUB_NAME VARCHAR(250) NOT NULL, SELECTOR VARCHAR(250), LAST_ACKED_ID INTEGER, PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME)); ERROR 1071 (42000): S

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
we tried this but received an error when settin the character set to utf-8The table ACTIVEMQ_ACKS failed. Any idea? On Wed, Oct 29, 2008 at 11:24 AM, Dejan Bosanac < [EMAIL PROTECTED]> wrote: > Can you please try and let us know > > Cheers > > -- > Dejan Bosanac > > > http://www.ttmsolutions.com

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Dejan Bosanac
Can you please try and let us know Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net � wrote: > I realized that by default the db used is latin. Would t

Re: Loadbalancing MessageProducer

2008-10-29 Thread James Strachan
2008/10/28 SarcasmMonster <[EMAIL PROTECTED]>: > > The point was to load balance the JMS broker, that way we don't hammer the > same broker with thousands of messages a second, BTW a single broker can usually handle that volume OK :) > but rather distribute the > load between multiple brokers. Y

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
I realized that by default the db used is latin. Would this help if i set the db which received the values (we use jdbc persistency) to utf8 instead of latin? On Wed, Oct 29, 2008 at 10:23 AM, Lars Eirik Rønning <[EMAIL PROTECTED]>wrote: > Well actually i would just like to take the xml which com

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
Well actually i would just like to take the xml which comes in and have this posted by my consumer. String myxml = request.getParameter("inputxml"); sender.sendMessage(myxml); sender is a regular producer which uses the sendTextMessage method defined by the jms spec. Do i really need to do anythi

Re: Utf8 encoding with activemq 5.1

2008-10-29 Thread Dejan Bosanac
Hi, can you post your code that creates and sends a message? Regards -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net � wrote: > Hi. > I have a servlet which

Re: Push or poll

2008-10-29 Thread Lars Eirik Rønning
Thanks for helping. I have sofar used the mesasgelistener , ut will probably move to receive(long) method to have the client poll for messages On Wed, Oct 29, 2008 at 8:59 AM, Marco Buss <[EMAIL PROTECTED]> wrote: > Lars Eirik Rønning schrieb: > > Hi. >> Is there a way for my client application

Utf8 encoding with activemq 5.1

2008-10-29 Thread Lars Eirik Rønning
Hi. I have a servlet which receives a post containing a utf8 encoded string. When this string is pushed to the que it seems to be stored as another characterset. When i use jaxb to autoprocess the xml from the que, i get an exception relating to byte offset. So far what i have done is used an outpu

Re: Push or poll

2008-10-29 Thread Marco Buss
Lars Eirik Rønning schrieb: Hi. Is there a way for my client application to poll at regular intervals? I understand that by default activemq uses push to distrubte messages.. Am i right or wrong? I would prefer having polling , but I do not run a webserver so i cannot use servlets Thanks. Lars

Re: thread deadlock issue in NMS

2008-10-29 Thread Hans Bausewein
mkeenan wrote: > > I'm using NMS 1.1 and I *think* there is a thread deadlock issue. > > If you can run (and reproduce the issue) on Java 6, you can test it on the Threads page of "jconsole". Or use "jstack": jstack -help Usage: jstack [-l] (to connect to running pr