Re: Example using REST interface with http post and get

2007-12-18 Thread Rob Davies
On Dec 19, 2007, at 12:34 AM, marlet wrote: Hi, I was using the ActiveMQ's REST interface for a project and wrote about that in a blog, so if you are interested: http://p-st.blogspot.com/2007/12/activemq-and-rest.html -- View this message in context: http://www.nabble.com/Example-using

Re: ActiveMQConnection:onAsyncException

2007-12-18 Thread bill richard
But i encountered the below exception,could anyone give me some hint?? thanks!! Error encountered,will handle exception.Channel was inactive for too long: /10.61.0.212:61616 javax.jms.JMSException: Channel was inactive for too long: /10.61.0.212:61616 at org.apache.activemq.util.JMSExcept

Re: Trouble with JAAS & 5.0.

2007-12-18 Thread Boris Mazniker
Boris Mazniker wrote: > > > Now, we're planning to use the built-in jetty servlet in 5.0. I looked at > the code briefly and it seems to me that right now there is no way of > configuring username/password for the servlet activemq connection. > initConnectionFactory() method in WebClient.java

Example using REST interface with http post and get

2007-12-18 Thread marlet
Hi, I was using the ActiveMQ's REST interface for a project and wrote about that in a blog, so if you are interested: http://p-st.blogspot.com/2007/12/activemq-and-rest.html -- View this message in context: http://www.nabble.com/Example-using-REST-interface-with-http-post-and-get-tp14408902s

memory control and monitoring

2007-12-18 Thread yg_cvg
I am new to ActiveMQ, so some of this may be obvious to others. What are the main ways to control the way the broker uses memory, other than persistence settings? I've search for documentation and these forums, and it seems the main thing is memoryUsage, tempUsage, etc. However, I can't find us

another question about networks of brokers

2007-12-18 Thread yg_cvg
This is to follow up on http://www.nabble.com/question-about-the-store-forward-algorithm-to14223478s2354.html (but reading that isn't necessary). Let's say I have a big graph of brokers connected to each other and producer A on broker A' sending a message to topic T. Further, let's say I have co

Re: Trouble with JAAS & 5.0.0

2007-12-18 Thread Boris Mazniker
I had the same problem, and it seems very similar to this bug: https://issues.apache.org/activemq/browse/AMQ-1157 I followed the instructions in the bottom of the page and patched AbstractRegion.java. It seems working fine now - at least I don't get this exception anymore. Hope it helps, Bori

Re: Trouble with JAAS & 5.0.

2007-12-18 Thread Boris Mazniker
I configured JAAS as a plugin and upon the startup got the security exception in addConnection method (I posted the stack trace further down in the letter in case anyone is interested). Later, I followed your advice and removed camel and commandAgent from the configuration. Jetty seems to not star

log4j jms appender w/ 5.0.0

2007-12-18 Thread Jordan Redner
Hi, I'm trying to get a log4j jms appender working with 5.0.0. I'm using the following properties: log4j.appender.jms=org.apache.log4j.net.JMSAppender log4j.appender.jms.InitialContextFactoryName=org.apache.activemq.jndi.Ac tiveMQInitialContextFactory log4j.appender.jms.ProviderURL=tcp://loca

Re: active mq (message expiration)

2007-12-18 Thread Gnanaprakash
Hi James, I am using ActiveMQ 4.1.1. I have two topic publishers and n number of durable subscribers as consumers. I have a network of two brokers each embedded inside jboss 4.0.3SP1 instances running behind a load balancer. The main issue I am facing is that when I restart my consumers, the o

Re: ActiveMQConnection:onAsyncException

2007-12-18 Thread bill richard
Yes,i made a test and find what i doubt is right. i should set exception listener which recover the subscribe.still testing... bill richard wrote: > > made a dural subscribe and wait for message. > i doubt the the connection or session created for subscribing is inactive > if there is no message

Re: active mq (message expiration)

2007-12-18 Thread James Strachan
Using what version & what kind of messaging? On 17/12/2007, Gnanaprakash <[EMAIL PROTECTED]> wrote: > > Hi, > > I am also facing a similar issue. > > The messages are not expiring as expected and they are consumed again by the > subscribers > if we bring them down and restart again. > > We are set

Re: ActiveMQ thoughts

2007-12-18 Thread Hellweek
Yes thanks for that. Test ran results posted. nmittler wrote: > > Robert, > I've captured what you have to do to change the timeout here > http://issues.apache.org/activemq/browse/AMQCPP-157 > > Regards, > Nate > > >> >> Yes please tell me where to change the code for th etime out I will re

Re: reg ObjectMessages in ActiveMQ CPP

2007-12-18 Thread narts
Thanks for your reply.. -- View this message in context: http://www.nabble.com/reg-ObjectMessages-in-ActiveMQ-CPP-tp14397624s2354p14398091.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: reg ObjectMessages in ActiveMQ CPP

2007-12-18 Thread Nathan Mittler
ActiveMQ-CPP does not support object messages, since serialized Java Objects won't make a lot of sense to a C++ application. If you need to send ObjectMessages, I recommend adding a Message Translator (http://activemq.apache.org/camel/message-translator.html ) using Apache Camel that converts

reg ObjectMessages in ActiveMQ CPP

2007-12-18 Thread narts
I am using activemq-cpp-2.1.3 on VC++ 2005 Iam able to execute sample application and oble to send text messages but my requirement is to send ObjectMessages, Please any tell me how to send ObjectMessages using activemq-cpp with Regards narts -- View this message in context: http://www.nabble.

Re: ActiveMQ thoughts

2007-12-18 Thread Nathan Mittler
Robert, I've captured what you have to do to change the timeout here http://issues.apache.org/activemq/browse/AMQCPP-157 Regards, Nate Yes please tell me where to change the code for th etime out I will re compile and try.

Re: Best practice setting up Messageproducer/-consumer

2007-12-18 Thread Rudi23
Hello rajdavies, thank you for the idea. Executing the setup in paralell threads will surely reduce the startup time. Rudi rajdavies wrote: > > The creation of a consumer and producer results in a round trip to the > broker - and as you are doing this sequentially. Why not simply > initia

Re: ActiveMQ thoughts

2007-12-18 Thread Hellweek
Yes please tell me where to change the code for th etime out I will re compile and try. James.Strachan wrote: > > On 17/12/2007, Nathan Mittler <[EMAIL PROTECTED]> wrote: >> Hey James, >> I've captured the details here >> http://issues.apache.org/activemq/browse/AMQCPP-157 > > Ah great, thanks.

Re: ActiveMQ thoughts

2007-12-18 Thread Hellweek
The stack trace from the CPP client was added to one of the posts in this thread. I do think it is related to flow control. James.Strachan wrote: > > On 17/12/2007, Hellweek <[EMAIL PROTECTED]> wrote: >> >> When performing the test with C# consumers the CPP producers fail. >> The CPP consumer

fixing queue size

2007-12-18 Thread shineOnYou
hi everyone, Please guide me how to fix queue size i mean limiting memory to a particular queue. thanks. -- View this message in context: http://www.nabble.com/fixing-queue-size-tp14396436s2354p14396436.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQConnection:onAsyncException

2007-12-18 Thread bill richard
made a dural subscribe and wait for message. i doubt the the connection or session created for subscribing is inactive if there is no message for certain minutes.is that the reason? if yes,what should i do? thanks!! rajdavies wrote: > > What are you doing when you encounter this exception ? >

Stop and restart of Network/TransportConnector does not work

2007-12-18 Thread hbruch
Hi, via JMX Transport- and NetworkConnector publish their start and stop operations. However, after performing a stop() calling start() does restart the connectors. Is this the intended behavior? Regards, Holger -- View this message in context: http://www.nabble.com/Stop-and-restart-of-Network

Re: ActiveMQ thoughts

2007-12-18 Thread Rob Davies
On Dec 17, 2007, at 10:33 PM, James Mansion wrote: Hellweek wrote: When performing the test with C# consumers the CPP producers fail. The CPP consumers do not fail with C# producers. Perhaps the server should send one flow control message and require that the client ACK it specifically bef

Re: Forwarding Bridge between embedded broker and remote broker

2007-12-18 Thread Rob Davies
You can also use explicit code - e.g. BrokerService broker = new BrokerService(); broker.setName("fred"); broker.setUseShutdownHook(false); //Add a network connection NetworkConnector connector = answer.addNetworkConnector("static://"+"tcp://somehost:61616"); connector.setDuplex(true); bro

Re: Journal is locked

2007-12-18 Thread Rob Davies
I updated the wiki - but this might take a while before its published to the amq site: http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html?refresh=1 Basically you can do something like this: BrokerService broker = new BrokerService(); broker.setName("fred"); broker.add

Re: ActiveMQConnection:onAsyncException

2007-12-18 Thread Rob Davies
What are you doing when you encounter this exception ? On Dec 18, 2007, at 10:52 AM, bill richard wrote: thanks. The list is below, JAVA: java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) OS

Re: ActiveMQConnection:onAsyncException

2007-12-18 Thread bill richard
thanks. The list is below, JAVA: java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) OS: Linux version 2.4.21-4.EL ([EMAIL PROTECTED]) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 Fri