javax.jms.InvalidClientIDException

2010-05-06 Thread Kalpana Jalawadi
Hi, I get javax.jms.InvalidClientIDException exception while creating the jms connection once in a while, inspite of passing a unique client id. Unable to reproduce the problem consistently, I'm deploying my app in tomcat. Below is the code snippet: connectionFactory = new ActiveMQConnectionFact

Apache.NMS.ActiveMQ.dll throw MissingMethodException:Boolean System.Threading.WaitHandle.WaitOne(System.TimeSpan)

2010-05-06 Thread alanchb
the dll i use is from Apache.NMS.ActiveMQ-1.2.0-bin i has tried .net-2.0 and .net-3.5 version,it seems the problem has nothing to do with the version. the missing method: Boolean System.Threading.WaitHandle.WaitOne(System.TimeSpan) the declaration of the method in C#:public virtual bool WaitOne(T

Question about activeMQ shuting down automatically every 30 minutes

2010-05-06 Thread Shin-Ideas
Hi, All I am new to activeMQ. I encounter a weird situation that every time the activeMQ server is running for around 30 minutes, it will automatically shut down. I am running the activemq 5.3.0 version and The following is the content in activemq.log, thanks for hints and comments. 2010

Re: ActiveMQ, non-persistent messages, and message expiration behaving correctly???

2010-05-06 Thread Joe Fernandez
I think this is the normal behaviour for 5.2. For 5.3, the message broker automatically sweeps destinations of expired messages every 30 seconds. You can change this default value via the 'expireMessagesPeriod' policyEntry attribute. Joe ActiveMQ Ref Guide - http://bit.ly/AMQRefGuide magell

Re: Unable to start Active MQ Broker without LAN Connection.

2010-05-06 Thread gkiran.ch
bsnyder wrote: > > On Fri, Jan 16, 2009 at 6:29 AM, sailaja p wrote: >> >> Hi, >> >> I am begginer to the Active MQ and trying understand the features of >> Active >> MQ. I have downloaded the Active MQ 5.1.0. When I tried to start the >> Messaging Broker without LAN Connection I am getting th

ActiveMQ, non-persistent messages, and message expiration behaving correctly???

2010-05-06 Thread magellings
Hello, I'm using ActiveMQ 5.2 and NMS 1.1. I'm sending non-persistent messages to a broker with an expiration time of 1 hour. After one hour the messages are not deleted from the queue (can see through jconsole and web console "number of pending messages"). After one hour, no more messages ar

Re: Firewall ports

2010-05-06 Thread Mark Galea
When I try to use the slash notation on the spring config it gives me that it is unable to connect to the host. Do you have any example of how to do this? Thanks a lot for your prompt reply. M Gary Tully wrote: > > I think you should use that / (slash) notation on in the spring config for

Re: Show delivered messages

2010-05-06 Thread Joe Fernandez
What about recording all message events via the logging interceptor? http://activemq.apache.org/logging-interceptor.html Joe CoreyTheiss wrote: > > Hi there, > > I'm trying to debug a problem whereby messages are being delivered to a > black hole. However, once a message has been successful

Re: Firewall ports

2010-05-06 Thread Gary Tully
I think you should use that / (slash) notation on in the spring config for the broker URl passed to the connection factory. The transport connector on the broker will use a single port. On 6 May 2010 17:51, Mark Galea wrote: > > Hi there, > > I have two machines which have ports 12004 and 12010

Firewall ports

2010-05-06 Thread Mark Galea
Hi there, I have two machines which have ports 12004 and 12010 open. I have a process which connects to an activemq server (Machine 1) on port 12004 but I want that server to reply back to Machine 2 on port 12010. The reply ports back from the server are randomly selected and I want this to b

Show delivered messages

2010-05-06 Thread CoreyTheiss
Hi there, I'm trying to debug a problem whereby messages are being delivered to a black hole. However, once a message has been successfully delivered, all I see in the web console is the dequeue incremented by one. Is there a way to list all recent messages (say, the last 2 hours), their conten

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Gary Tully
see: http://activemq.apache.org/how-do-i-turn-off-creating-an-embedded-activemq-broker-when-using-the-vm-transport.html On 6 May 2010 15:16, Travers Snyman wrote: > > Hi Dejan, > The osgi dependency in the pom did the trick. It however seems the > connection factory starts before the broker is s

Re: Consumer client stops after failover

2010-05-06 Thread Jim McCabe
I think the problem is that the failover thread must be flagged as being a daemon thread. So when the the application doesn't have any other threads to keep the VM alive, the VM shuts down while the failover thread is trying to do its work. In many programs this bug would not be noticed because

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Dejan Bosanac
Hi Travers, that message "Waiting to Lock the Store" indicates that some other broker is using the store. Can you make sure you don't have any other brokers running? Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://w

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Travers Snyman
Hi Dejan, The osgi dependency in the pom did the trick. It however seems the connection factory starts before the broker is started completely. It gets stuck running a test suite with the following: WARN [main] AMQPersistenceAdapter.lock(1036) | Waiting to Lock the Store d:\activemq\data 06 May 2

Re: actviemq client trustStore settings

2010-05-06 Thread Gary Tully
For the client side there default is to use the system properties. You could override (register) the transport factory used by client connections such that you can provide explicit configuration. For an example in context see the createbroker() method of the unit test http://svn.apache.org/viewvc/

RE: activemq 5.3.1 SEVERE: NATURAL JSON notation configured, but JAXB RI 2.1.10 not found.

2010-05-06 Thread Davis, Dorothea
Hello Bruce, OK, I got it working. I moved just the 2 2.1.12 jar files -- jaxb-api.jar & jaxb-impl.jar, directly to my /opt/isv/activemq/fuse-mb/lib THANKS for all your help!! -Original Message- From: Bruce Snyder [mailto:bruce.sny...@gmail.com] Sent: Thursday, May 06, 2010 1:43 AM

actviemq client trustStore settings

2010-05-06 Thread codescoder
hi all, i am able to connect one of my client to activemq using ssl. in client program i am mentioning following for key and trust settings. systemProps.put("javax.net.ssl.trustStore","C:/test-deploy/client.ts"); systemProps.put("javax.net.ssl.keyStore","C:/test-deploy/client.ks"); systemProps.pu

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Dejan Bosanac
Hi, just tested it this should be enough org.apache.activemq activemq-core 5.3.1 org.springframework spring 2.5.6 org.apache.xbean xbean-spring 3.6 to include a broker. The osgi should be included in the classpath as ActiveMQ dependency. If it is not, add it such as

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Travers Snyman
Yes I have tried this with 5.3.1 and get the same error Instantiation of bean failed; nested exception is org.springf ramework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.xbean.XBeanBrokerService]: Constructor threw exception; nested exception is java.l

Re: Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Dejan Bosanac
Hi, can you try org.apache.activemq activemq-all 5.3.1 Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Th

Unable to configure embedded broker activemq 5.3.x

2010-05-06 Thread Travers Snyman
I am unable to get the right configuration for an embedded broker to start configuring with spring. In my pom.xml I have the following dependancy for activemq org.apache.activemq activemq-core 5.3.2 My Jms-context.xml contains the following fo