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 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
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
Topic Number Of Consumers Messages
EnqueuedMessages Dequeued
ActiveMQ.Advisory.Connection 0 3672
0
ActiveMQ.Advisory.Queue0 12502
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
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
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
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
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
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
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 ? 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
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
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
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
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
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
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
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
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
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/
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=
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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.
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
41 matches
Mail list logo