Re: Pure Master Slave not working

2008-03-24 Thread Ramit Arora
Hi Joe, I am getting the same 'out of sync' exception while using pure master/slave (5.0.0). Were you able to fix the problem in your case? The problem begins at relatively heavy load (> 50 clients). The performance keeeps degrading & finally the system hangs. Any ideas would be appreciated. Tha

Re: running ActiveMQ in a load balanced tomcat

2008-03-24 Thread mkg
Thank you for the response. I got over the problem when I set false for JMX connection and providing connector URL. Now my messaging is working fine. Any idea what can be the impact of this? -Manoj ttmdev wrote: > > You typically get a BindException when you try and bind to a port that has

Re: ActiveMQ 5.0 & JAAS: SecurityException: User name or password is invalid on Startup

2008-03-24 Thread navnetkachroo
The users.properties, login.config, and groups.properties files are in $ACTIVEMQ_HOME/conf/org/apache/activemq/security ... I give this path as an argument while (java.security.auth.login.config) starting ActiveMQ. I tried commenting the simple plugin => It passed through the previous block... B

Re: Unable to comile C++ client on VC++ 2003

2008-03-24 Thread johnmcnew
I followed the directions and got the libactivemq-cppd.lib file to build. However, I get a lot of linker errors when I try to compile the example. Does anyone have a working project or solution file that I can use to get the example to compile? I copied the settings straight from the VS2005 pro

Re: ActiveMQ 5.0 & JAAS: SecurityException: User name or password is invalid on Startup

2008-03-24 Thread ttmdev
Are the files users.properties, login.config, and groups.properties in $ACTIVEMQ_HOME/conf? I noticed that you have both the jaas and simple authentication plugins enabled in your broker's xml cfg file. Try commenting out the simple plugin. Can you clients connect to the broker? Joe navnetk

Re: ActiveMQ 5.0 & JAAS: SecurityException: User name or password is invalid on Startup

2008-03-24 Thread navnetkachroo
Thanks for your reply. I tried giving the username & pwd... But even that did'nt work :(. I'm getting the same exception. ttmdev wrote: > > Couple of things to keep in mind. > > a. Any broker wishing to connect to this broker (i.e., the one you've > enabled security for) will need to prov

Re: ActiveMQ 5.0 & JAAS: SecurityException: User name or password is invalid on Startup

2008-03-24 Thread ttmdev
Couple of things to keep in mind. a. Any broker wishing to connect to this broker (i.e., the one you've enabled security for) will need to provide the proper credentials via the networkConnector element's userName and password attributes. b. Any networkConnector elements given to this broker m

ActiveMQ 5.0 & JAAS: SecurityException: User name or password is invalid on Startup

2008-03-24 Thread navnetkachroo
Hi, I configured JAAS & ActiveMQ 5.0. On ActiveMQ startup, I get the User name or password is invalid exception. (stacktrace mentioned in the end of this post). I've been through all the related posts & have tried the suggestions, even then this doesn't work ! Attached are the configuration f

question on DeadLetterStrategy

2008-03-24 Thread Jim Alateras
Hi, I am using activemq 5.0 and occasionally I see some messages on the DLQ. I was wondering 1. whether there is a default DeadLetterStrategy configured for a broker 2. under what circumstances is a message placed on the DLQ cheers

setting a MessageListener on a consumer?

2008-03-24 Thread Andrew M
I'm using the method below to create a Topic and Consumer and register my MessageListener. I'm worried that with a retroactive consumer I'm missing messages between the .createConsumer() method and when the MessageListener is actually registered with the MessageConsumer. Shouldn't there be some w

Re: jms-json transformation: missing library

2008-03-24 Thread mjustin
Found it :) The message was sent as a JMS BytesMessage (instead of a TextMessage) and the object property names have to be in lowercase. I am more than happy now =) Kind Regards Michael Justin mjustin wrote: > > The Delphi-generated version does not show up as SamplePojo object in the > admin

Re: jms-json transformation: missing library

2008-03-24 Thread mjustin
Hi Dejan, meanwhile I found out how a JSON-encoded java object encodes the class name. Now I can see that I can generate JSON-encoded objects with Java and Delphi, the differences are very small. Only the order of the fields changes: Generated by the Java producer: {"SamplePojo":{"name":"myname

Re: Where are the command line tools?

2008-03-24 Thread Eric Rodriguez
Now you access the same functionalities from activemq-admin.bat for instance: c:\apache-activemq-5.0.0>activemq-admin query -h Eric Andrew M wrote: I don't find those command line tools in that archive. I'm looking for shutdown.bat, query.bat, etc. E:\erase\apache-activemq-5.0.0>dir *.bat /s

Re: jms-json transformation: missing library

2008-03-24 Thread mjustin
Hello Dejan, many thanks - it works like a charm now. Now I am stuck just at the next corner and could have know before: I wrote a SamplePojo class and send it from a Java producer tool, and it successfully shows up in the web admin console. It appears in the typical Java notation in the 'Mess

Re: Problems with Pure Master/Slave in AMQ 5.0.0

2008-03-24 Thread Ramit Arora
Hi, I am facing the same issue with 5.0.0. Has something been done about it? The Master/Slave topology seeems to work fine for a small number of clients (around 20-30) but fails after that. This might turn out to be a showstopper for us. Thanks, Ramit TBuckel wrote: > > Raised a JIRE ticket. At

Re: AMQ 5.1 - Re-queued msg are redelivered again after restart

2008-03-24 Thread spiiff
Hi, in the JMS spec the following is specified: "It is possible for a listener to throw a RuntimeException; however, this is considered a client programming error. Well-behaved listeners should catch such exceptions and attempt to divert messages causing them to some form of application-specific

Re: running ActiveMQ in a load balanced tomcat

2008-03-24 Thread ttmdev
You typically get a BindException when you try and bind to a port that has already been taken by another process or thread. So it looks like you have more than one embedded broker, in your load balanced cluster, trying to bind to the same port on the same machine. Joe Goto www.ttmsolutions.com f

ActiveMQQueueReceiver are kept in the memory even though they are closed

2008-03-24 Thread Michal Singer
Hi. When i monitor the memory i see that i got accumulation of ActiveMQQueueReceiver objects. I close the receviers in my application and set them with null. I create only one session/connection so i close it only at the shutdown. What can cause this problem? is there some other cleanup needed fo

ActiveMQ RA serialization issue in Websphere

2008-03-24 Thread Yuvaraj
Hi, Iam using ActiveMQ 5.0.0 as the messaging infrastructure within Websphere Application Server 6.1. I installed the Resource Adapter(RAR) that comes with ActiveMQ. I am running into a NPE when I try to retrieve a ConnectionFactory from the JNDI Tree. After some digging found that there is a k

RE: Where are the command line tools?

2008-03-24 Thread Andrew M
I don't find those command line tools in that archive. I'm looking for shutdown.bat, query.bat, etc. E:\erase\apache-activemq-5.0.0>dir *.bat /s Volume in drive E is New Volume Volume Serial Number is D2B2-7168 Directory of E:\erase\apache-activemq-5.0.0\bin 12/07/2007 09:47 AM 4

Re: jms-json transformation: missing library

2008-03-24 Thread Dejan Bosanac
Hi Michael, you are right, XStream is an optional dependency, so you have to put it manually into the lib/ folder. Additionally, you have to include jettison (http://jettison.codehaus.org) into broker's classpath if you plan to use JSON. I've just updated docs with this info (http://cwiki.apache.o

Re: Implementing failover for Net::Stomp

2008-03-24 Thread Dejan Bosanac
Hi Ramit, you can take a look at how this functionality is implemented in PHP client (http://stomp.codehaus.org/PHP+Connectivity). Basically, you can detect that broker is down when you try to read/write from a socket and implement reconnection logic in those cases. BTW. error frames are sent to t

jms-json transformation: missing library

2008-03-24 Thread mjustin
Dear all, with the current 5.1 snapshot, jms-json transformation requires the Thoughtworks xstream library which is not included in the binary distribution. I have found a download location for the required jars: http://dist.codehaus.org/com.thoughtworks.xstream/jars/ If the jar can not be in

Maven2 Plugin (activemq:run) missing Spring class FileSystemResource

2008-03-24 Thread mjustin
Dear all, I followed the instructions on http://activemq.apache.org/maven2-activemq-broker-plugin.html and the startup of ActiveMQ fails because a Spring framework class seems is missing: [INFO] [activemq:run] [INFO] Loading broker configUri: xbean:file:./src/resources/activemq.xml [INFO] -