RE: Conntecting to a remote broker.

2013-02-25 Thread AMARNATH, Balachandar
HelloWorldConsumer.java ** import java.util.ArrayList; import javax.jms.Connection; import javax.jms.Destination; import javax.jms.Message; import javax.jms.MessageConsumer; import javax.jms.Session; import javax.jms.TextMessage; import org.apache.activemq.ActiveMQConnec

Re: Conntecting to a remote broker.

2013-02-25 Thread Christian Posta
A few seconds on google turns up this excellent blog post that perfectly answers your question: http://www.javablogging.com/simple-guide-to-java-message-service-jms-using-activemq/ Follow it step by step and you'll be on your way. Cheers On Mon, Feb 25, 2013 at 1:24 PM, iluv2salsa wrote: > I

Conntecting to a remote broker.

2013-02-25 Thread iluv2salsa
I am in need of a simple example to do the following: On one Fedora 18 machine create a broker and a consumer to recieve a message. On another Fedora 18 machine create a producer and send a message. i have been trying for a couple of weeks and spend many hours on google. Please, nothing fancy, no

Re: OutOfMemoryError due to TopicSubscription

2013-02-25 Thread Ishitori
I am not sure why it uses a bridge to destination feature. Is there another way to configure it? (sysadmin did it that way, not me) But I wonder is 6 bridges is really a high number? How many resources does it take to support a separate advisory topic subs? Here is the full config: http://www.spr

Re: OutOfMemoryError due to TopicSubscription

2013-02-25 Thread Ishitori
I don't use advisory topics, but I do use network of brokers. There are 2 brokers and they are connected by network connector per queue basis. Here is the example: :62626)" networkTTL="2" prefetchSize="1" duplex="true">

Re: Embed a camel project (camel-archetype-spring) in activemq

2013-02-25 Thread Christian Posta
ActiveMQ ships with camel. Your best bet is to put them into the camel.xml file, and include it from your activemq.xml file. If you're using custom beans, you'll need to put those into a jar file and put that into ${activemq_home}/lib On Thu, Feb 21, 2013 at 2:31 AM, francesco wrote: > I have

Re: ActiveMQ 5.8: Failed to execute purge task

2013-02-25 Thread James Green
This problem will almost certainly prevent us upgrading to 5.8.0. On 25 February 2013 11:55, Gary Tully wrote: > 5.9.0 is typically a few months away, but we have a few osgi related issues > with 5.8.0 so I think we will need to do a 5.8.1 towards the end of march > or early may when all of th

Re: AMQ halts and crashes after few thousand reqs

2013-02-25 Thread Christian Posta
First, start by posting the broker configurations you're using. On Fri, Feb 15, 2013 at 3:44 AM, mandar.wanpal wrote: > Hi All, > > We are seeing some serious issue with AMQ in few of our load tests. > > We have configured our AMQ with below configs. > > Heap size increased 1GB > JMX port opened

Re: Queue browser hasMoreElements blocks on empty

2013-02-25 Thread Christian Posta
Doesn't look like this blocking behavior is configurable at the moment. Looks like it will try to pull messages if the prefetch is 0, otherwise sits in a blocking-while loop. Can you open a jira to track this request? On Tue, Feb 19, 2013 at 10:59 AM, Oleg Dulin wrote: > I need queue browser ha

Re: OutOfMemoryError due to TopicSubscription

2013-02-25 Thread Christian Posta
Maybe you can post your complete config file? Are you using network of brokers? Or using advisory topics? On Mon, Feb 25, 2013 at 6:45 AM, Ishitori wrote: > Hi, > > Recently our live AMQ 5.7.0 server on Windows experienced OutOfMemory > exception. I've read the article > http://blog.garytully.c

OutOfMemoryError due to TopicSubscription

2013-02-25 Thread Ishitori
Hi, Recently our live AMQ 5.7.0 server on Windows experienced OutOfMemory exception. I've read the article http://blog.garytully.com/2009/07/apache-activemq-out-of-memory.html that states that it is usually a problem of configuration. I also read FAQ page http://activemq.apache.org/javalangoutofm

Re: [activemq-user] ActiveMQObjectMessage.getObject() gives StramCorruptedException

2013-02-25 Thread Valentin Iliu
Hi Gabriel I am dealing with the same problem. I know this was many years ago, but I guess it's worth asking: did you find the solution and, if so, can you remember what it was? Thanks in advance. Regards Valentin -- View this message in context: http://activemq.2283324.n4.nabble.com/activemq-

Re: OSGi support for Apollo?

2013-02-25 Thread Jean-Pierre Bergamin
That sound promising... I created https://issues.apache.org/jira/browse/AMQ-4344 for this. Best regadrs, James 2013/2/24 Christian Posta > It can be done. Can you open a JIRA to track that? > > > On Fri, Feb 22, 2013 at 1:04 PM, Jean-Pierre Bergamin > wrote: > > > Dear activemq users > > > >

Re: Reorder of messages

2013-02-25 Thread Gary Tully
On 13 February 2013 14:20, dannygallagh...@gmail.com < dannygallagh...@gmail.com> wrote: > .. > One question about priority messages: > When a message is consumed by priority, isn't that really the same as using > a selector? > ActiveMQ must be looking at everything in the queue, just like a selec

Re: ActiveMQ 5.8: Failed to execute purge task

2013-02-25 Thread Gary Tully
5.9.0 is typically a few months away, but we have a few osgi related issues with 5.8.0 so I think we will need to do a 5.8.1 towards the end of march or early may when all of the osgi related issues are resolved. We don't have any solid date at this time. On 25 February 2013 08:56, iamactivemquse

Re: ActiveMQ 5.8: Failed to execute purge task

2013-02-25 Thread iamactivemquser
Hi gtully, I´ve already seen you have fixed this bug in the trunk :) I´ve built ActiveMQ from this repository, and everything works fine now. Do you know when is planned to release ActiveMQ 5.9.0? Thanks, Ana -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-