Windows C++ Hang on connection.Start creating a producer

2011-02-15 Thread ChicagoBob123
We are testing our C++ Windows application. We pointed to an IP Address where there was no ActiveMQ server running. Bleow is the code snipet. The brokerURI is failover:(tcp://192.168.14.100:61616) we also tried tcp://192.168.14.100:61616 createConnection always comes back with no issue

How to Purge a queue via TCP/NMS or HTTP

2010-11-11 Thread ChicagoBob123
How do you purge a queue via NMS or HTTP Rest? The Apache notes on this are very fuzzy but they seem to indicate there is no way from NMS or HTTP Rest to do this only using Java code via getDestinations(). So my questions are many. Can I purge the queue programatically via NMS or HTTP Rest? If

Re: ActiveMQ with HTTPS: message string too long

2010-11-11 Thread ChicagoBob123
This has something to do with the jetty web server and not ActiveMQ. I have the exact same issue with regular http and tried my best to work around the issue. There is no book or guide on Jetty and ActiveMQ so I could find an alterations in the xml files that worked. I tried quite a few that said

topics created when I am using queue?

2010-10-08 Thread ChicagoBob123
Topic Number Of Consumers Messages EnqueuedMessages Dequeued ActiveMQ.Advisory.Connection 0 3672 0 ActiveMQ.Advisory.Queue0 12502

Deleteing or purging a Queue

2010-10-08 Thread ChicagoBob123
I have the need to purge a queue when a new request comes in on a queue I named commandqueue. When I try to delete the queue I get an exception that there still is a consumer attached to the queue. That may be true and is of no consequenece to me. I need to either purge or delete the queue. I

Re: Does this effect REST/web access? Timer/TimerTask code added to examine ajaxWebClients

2010-10-01 Thread ChicagoBob123
That would help a great deal. It would make sense for topic subscribers via REST to have a timelimit to their sessions. Would love to try it on my server. Let me if you can add the code. -- View this message in context: http://activemq.2283324.n4.nabble.com/Does-this-effect-REST-web-access-T

Does this effect REST/web access? Timer/TimerTask code added to examine ajaxWebClients

2010-10-01 Thread ChicagoBob123
Timer/TimerTask code added to examine ajaxWebClients and clean up clients which have not been accessed in the past minute.> I read that this patch was recently added. Does this work with any Web session? This would be of great for use for me and REST API and Topic subscr

Suggestion for a TOPIC subscriber REST API

2010-09-29 Thread ChicagoBob123
When using REST the subscriber can loose connection or disconnect all together. It would be nice to have a subscription timeout so the broker is not left holding the messages indefinitely for the subscriber. Or is there such an option already? Currently I created what seems to be a complex solu

Topic Durable Subscription and message timeout

2010-09-23 Thread ChicagoBob123
If you have a Durable Subscription to a topic and produce the message with a timeout.. What wins if the subscriber is disconnected longer than the message timeout? -- View this message in context: http://activemq.2283324.n4.nabble.com/Topic-Durable-Subscription-and-message-timeout-tp2552330

ActiveMQ.DLQ created when JMSTimeToLive added.

2010-09-23 Thread ChicagoBob123
Why is this queue created to hold messages that have timed out? Is there a way to avoid this? Thanks, Bob -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-DLQ-created-when-JMSTimeToLive-added-tp2552063p2552063.html Sent from the ActiveMQ - User mailing list archiv

Re: Is the Jetty Server unstable?

2010-09-20 Thread ChicagoBob123
Is the Jetty Server unstable? I forgot to add we have used ActiveMQ via TCP and pounded 3 million records into the queue and read them back. Issues? None. I have been working on producing and consuming messages via REST using HTTP and getting beat up. -- View this message in context: htt

Is the Jetty Server unstable?

2010-09-20 Thread ChicagoBob123
Is the Jetty Server unstable ? I get different results every day. Internal server errors or out of memory errors. Is it just unstable? -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-the-Jetty-Server-unstable-tp2547122p2547122.html Sent from the ActiveMQ - User mailing

Jetty server HTTP ERROR: 500 Can anyone tell me why this has failed

2010-09-20 Thread ChicagoBob123
Can anyone tell me why this has failed HTTP ERROR: 500 org/eclipse/jdt/internal/compiler/util/Messages RequestURI=/admin/connections.jsp Caused by: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/util/Messages at org.eclipse.jdt.internal.compiler.Compiler.handleInterna

ActiveMQ REST producer Still leaking.

2010-09-17 Thread ChicagoBob123
Part the fix was to alter the \ActiveMQ.bat start up file. BUT its still leaking. Posting via REST seems to create quite a memory leak. The threads seem to have stopped growing at about 33 but memory ever increases. It would take a few days but it will run out of memory. By the way I wanted to

Re: ActiveMQ REST producer Causes Out Of MemoryError

2010-09-16 Thread ChicagoBob123
I have found part of a fix but it really doesnt fix everything. Here it is. Open your bin\ActiveMQ\ActiveMQ.bat Find this line if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties change it to

ActiveMQ REST producer Causes Out Of MemoryError

2010-09-16 Thread ChicagoBob123
Every post message you make you make increases the thread count and memory footprint of java.exe I have tried version 5.3.1 and versions 5.4.0 from researching this on the net it looks like the error is tied to MessageServlet or how its being used. I dont know enough Java which is frustrating

REST I am totally LOST now.

2010-09-16 Thread ChicagoBob123
I have a local version of ActiveMQ on a server on our internal network. Externally I have another version of ActiveMQ running. Same code is a producer and same code is a consumer. The internal server is hooked up via port 8080 everything just works. I can push via HTTP data via ActiveMQ and

ActiveMQ 5.2.0 + REST + HTTP POST = java.lang.OutOfMemoryError

2010-09-16 Thread ChicagoBob123
Is this true? http://stackoverflow.com/questions/811732/activemq-5-2-0-rest-http-post-java-lang-outofmemoryerror It seems that the only solution is to write your own which is what the originator of the post indicated. I know very little about java (not coded any it in almost 15 years) but from w

Re: Rest producer quits after about 500 messages.

2010-09-16 Thread ChicagoBob123
More information.. If I go to the site and try to browse the queue's I get this error message. HTTP ERROR 500 Problem accessing /mjst/queueBrowse/FOO/BAR. Reason: unable to create new native thread Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.l

Rest producer quits after about 500 messages.

2010-09-16 Thread ChicagoBob123
I am sending XML wrapped messages that are about 6K in length about once a second using REST. I gave the messages a timeout of 5 seconds. &JMSTimeToLive=5000 I am taking the messages off the queue and in currently there are no messages in the queue. The jetty sever seems to die after 500 messa

Re: HTTP REST Number of consumers keep going up?

2010-09-13 Thread ChicagoBob123
Dejan, Can I run an application on the server that would eliminate all the consumers of a queue every 15 minutes or so? I dont even know if there is such a thing in code as dump consumers without restarting the server. -- View this message in context: http://activemq.2283324.n4.nabble.com/

Is there a list of REST keywords for ActiveMQ?

2010-09-13 Thread ChicagoBob123
So far I have uri addition of message/queuename // identifies you are going to post data to or get data from a queue JMSTimeToLive= // allows message to expire in millisecods if on queue too long. clientId= // an internal ID used to keep session open between gets readTimeout=

HTTP REST Number of consumers keep going up?

2010-09-13 Thread ChicagoBob123
If I use REST and ActiveMQ the number of consumers seems to go up even though they are no longer connected. I get on one machine post messages to the queue. I get on a different machine and consume the posts. I then stop consuming from that machine and it looks like its still connected? How do

Queue control. Or message expiration

2010-09-10 Thread ChicagoBob123
I am using http and Rest to send messages up to a queue but I want the messages to expire after a few seconds. (if no one dequeues them in 5 seconds I dont want them hanging around). Can you do that with out writting an application to browse the queue? Is there a setting? Thanks -- View this me

ActiveMQ http how do you protect the admin site?

2010-09-10 Thread ChicagoBob123
I can delete the other sites such as demo,fileserver and camel but how do you limit access to admin using the jetty server? Or change the port so it can only be accessed by as an internal website? One other question is ActiveMQ can work on port 80 as long as there isnt another server on port 80

Re: Problems with configuring and using ActiveMQ with http

2010-09-10 Thread ChicagoBob123
Dejan, and everyone else THANK YOU. I read this many times but did not understand how to implement it. But after going through it again and again and doing some trial and error I have finally found a combination that works. Let me share some C# code.. This REST protocol really balances things

Re: Problems with configuring and using ActiveMQ with http

2010-09-09 Thread ChicagoBob123
Last note. I can post to this queue just fine via http. Its just dequeueing giving me a problem. Any ideas would be great. >>> OK here is whats happening I queue 5 items I can read the queue twice. via http. http://localhost:8080/demo/message/abc?&type=q

Problems with configuring and using ActiveMQ with http

2010-09-09 Thread ChicagoBob123
OK here is whats happening I queue 5 items I can read the queue twice. via http. http://localhost:8080/demo/message/abc?&type=queue Then I can not read the queue unless I kill and restart ActiveMQ. Mystery to me folks the error I get By checking here I can see an error. http://localhost:8

Re: configuring and using ActiveMQ with http

2010-09-09 Thread ChicagoBob123
I now have 3 questions have reading and trying to make this work. First does this actually work reliably? Read through some the REST API get from a queue. I started by trying to get data from a queue. I have recieved some items from the queue but its unstable. I get no data even when there i

Re: configuring and using ActiveMQ with http

2010-09-08 Thread ChicagoBob123
On Wed, 2010-09-08 at 12:41 -0700, ChicagoBob123 wrote: > Does the CMS C++ client support Http transport? No, only the Java client provides HTTP transport at this time. Regards -- Tim Bish More questions poped up. Where can I find the spec or outline to do something like this? My guess

Re: configuring and using ActiveMQ with http

2010-09-08 Thread ChicagoBob123
ARGGH BUMMER Oh well. Guess I have to find the source for this and do a little translating if I can. Thanks a bunch. -- View this message in context: http://activemq.2283324.n4.nabble.com/configuring-and-using-ActiveMQ-with-http-tp2531794p2531955.html Sent from the ActiveMQ - User mailin

Re: configuring and using ActiveMQ with http

2010-09-08 Thread ChicagoBob123
Does the CMS C++ client support Http transport? -- View this message in context: http://activemq.2283324.n4.nabble.com/configuring-and-using-ActiveMQ-with-http-tp2531794p2531912.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

configuring and using ActiveMQ with http

2010-09-08 Thread ChicagoBob123
Anyone use ActiveMQ with http before? I got work to buy the book ActiveMQ in Action. Its not too bad but its not answering my question directly. Its obvious you can use http transport but its not clear on how from the client perspective. I think you need to alter activemq.xml in the section

Can ActiveMQ be recived over port 80 ?

2010-09-02 Thread ChicagoBob123
So with the right IP and restrictions you can gain access to the queue's over the internet. The only reason I ask about port 80 is it usually has no firewall restrictions for outside companies. -- View this message in context: http://activemq.2283324.n4.nabble.com/Can-ActiveMQ-be-recived-over-p

Re: Newbie questions on NMS or CMS ActiveMQ consumers puzzle

2010-09-01 Thread ChicagoBob123
Thanks for the feedback! I read this statement a couple of times from the link you sent and wondered if someone could elaborate further. "If a consumer receives a message and does not acknowledge it before closing " Closing what exactly? Closing the queue? The Session? The link also mention

Newbie questions on NMS or CMS ActiveMQ consumers puzzle

2010-09-01 Thread ChicagoBob123
The problem I have 2 consumers of one queue and each consumer only seems to get 1/2 the messages. Here is some my consumer code. The concept is easy I browse the queue and remove any messages that belonged to my application based on an id contained in the message. Then I acknowledge which shoul

Re: Newbie question about many consumers and many producers

2010-08-31 Thread ChicagoBob123
Hi, I appreciate your reply but I don't know what this means. >>> Acknowledging a message also acks all preview messages iir >>> >>>If the IDs are set as message properties, the client can filter their >>> own messages by using a selector on the messageconsumer. This I can investigate. I kno

Re: Newbie question about many consumers and many producers

2010-08-31 Thread ChicagoBob123
We are trying to work with another organization and their spec. I suggested the multiple queue idea to my boss today but have not heard back as he is out of town. So the answer is I just don't know if this is a hard core requirement yet. Is it ok to have 40 or 50 queues? Bob -- View this me

Re: Newbie question about many consumers and many producers

2010-08-31 Thread ChicagoBob123
ason you would not consider using separate queues for >each of the different consumers? Seems that it may simplify your solution. > >Matt Pavlovich > >On Aug 31, 2010, at 12:30 PM, ChicagoBob123 <[hidden email]> wrote: > > > > > Newbie question about many consumers

is there a doc which provides an overview of ActiveMQ from a users perspective?

2010-08-31 Thread ChicagoBob123
I am stumbling on examples and some code snippets and have gotten over the hurtle of sending and reading messages but would like a cookbook or solutions book for some of the basic chores. thanks -- View this message in context: http://activemq.2283324.n4.nabble.com/is-there-a-doc-which-provides

Newbie question about many consumers and many producers

2010-08-31 Thread ChicagoBob123
Newbie question about many consumers and many producers. I have searched and read through some of the archives but have not been able to find an answer to this question. I am working on an application that will have several different producers. They supply messages to a common queue. The message