Re: Topic Inheritance

2010-04-14 Thread go canal
thanks for the examples. just wanted to make sure if my understanding is correct: * is to match any name, including empty name; > is to match any name (not for empty?) and hierarchy. So a.* means 'a.' followed by one or zero hierarchy. a.> means 'a.' followed by one or more levels of hier

Re: Topic Inheritance

2010-04-14 Thread Bruce Snyder
On Wed, Apr 14, 2010 at 10:20 PM, go canal wrote: > this solves my chat room use case also, thanks. I did not realize this > feature, did not remember JMS has this. JMS does not offer this feature. This is an ActiveMQ-specific feature. Bruce -- perl -e 'print unpack("u30","D0G)u8...@4vyy9&5R\

Re: Topic Inheritance

2010-04-14 Thread Sebastian Rodriguez
Hi canal, Yes, car.ford.> and car.ford.* will receive the same messages. The difference is that for example you want to receive all the messages concerning truck, *.*.truck will make the trick :) For the difference between * and > maybe this other example will help you understand: a.b.c a.b.d a.

Re: Topic Inheritance

2010-04-14 Thread go canal
this solves my chat room use case also, thanks. I did not realize this feature, did not remember JMS has this. A question wrt > and *, not very clear about these two: if I have car.ford.suv, car.ford.truck are these two the same: car.ford.> car.ford.* rgds, canal

modeling chat room use cases

2010-04-14 Thread go canal
Hello, I was trying to understand how I can support chat room use cases. Need help here. I am using Java, with Spring integration, and AjaxServlet. What I would like to support: - dynamically create a chat room this is not a problem, since a topic is created upon receiving the first message

Re: Topic Inheritance

2010-04-14 Thread Rob Davies
Yes - ActiveMQ supports destination hierarchies - a '.' dot notation denotes an element in the name. To extend your example - say you had models too - to subscribe to all Ford cars - you would use '>'. e.g. car.ford.> You can use the '*' to subscribe to everything for So to subscribe to cars -

BadMagicException starting broker

2010-04-14 Thread jalateras
I have a situation where i get a org.apache.activemq.kaha.impl.index.BadMagicException exception when my broker is starting up. Here is the stack trace org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatcherManager' defined in class path resource http:/

Re: Messages stuck after Client host reboot

2010-04-14 Thread Josh Carlson
Folks ... just because I hate nothing more than coming across a post with out a solution, I thought I'd post what I did. After discovering the same problem on Solaris as Linux I decided that TCP keepalive might be the answer. Activemq does appear to allow you to set this: http://activem

Re: ActiveMQ-CPP why .lib is needed?

2010-04-14 Thread Timothy Bish
I don't have access to my Visual Studio project files right now but I think that you should be linking against the lib file from the DLL build which is activemq-cpp.lib. Then when your application runs you will need to have the activemq-cpp.dll on the PATH. Regards Tim. On Tue, Apr 13, 2010 at 1

JMSTimestamp on DLQ messages

2010-04-14 Thread chrajanirao
Hi, How to get the My the timestamp of message created in DLQ in ActiveMQ 5.3? The JMSTimestamp header property seems to contain the original timestamp of message on it main Q not the time it ended up in DLQ. I am sure that in 5.2 JMSTimestamp value was always the timestamp of message created t

Re: AMQ integration with JBoss - Failover to TCP when trying to use VM protocol

2010-04-14 Thread Tammer Salem
That is the config I have. So this is the line from my ra.xml: The URL to the ActiveMQ server that you want this connection > to connect to. If using an embedded broker, this value should be 'vm://localhost'. ServerUr

Caught exception sending shutdown

2010-04-14 Thread Waterinius
Hi, I've 2 brokers working in failover on two different machines under Centos 5.3 Here is configuration one of them. http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.apache.org/schema/core"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="

Re: Topic Inheritance

2010-04-14 Thread Sebastian Rodriguez
Dear Carlos, You should have a look at the wildcard subscriptions: http://activemq.apache.org/wildcards.html It's more the other way around though: you publish to a specific topic and all the parent's subscribers will receive it, instead of publishing to a

Topic Inheritance

2010-04-14 Thread carlosfocker
Does ActiveMQ allow for topics to have parent topics? For example, a parent topic Car might have two child topics called Ford and Nissan. If a publisher publishes a message to the Car topic, both Ford and Nissan subscribers would receive the message. If a message is published to the Nissan topi

Re: Messages stuck after Client host reboot

2010-04-14 Thread Josh Carlson
Hi Dejan, I don't think it would be practical or correct for us to do that client side. The thing that gets me though is that killing the client *process* causes the tcp connection to get closed on the other end. But killing client *host* keeps the tcp connection established on the other end.

Log4jJMSAppenderExample not receiving log messege

2010-04-14 Thread Amitv
I am running the Log4jJMSAppenderExample.java file : ant log4j-jms as per given instructions on : http://activemq.apache.org/how-do-i-use-log4j-jms-appender-with-activemq.html, and without any changes in the example. ActiveMQ (5.3.0) is running on local machine itself. Program runs but doesnt pr

Re: Messages stuck after Client host reboot

2010-04-14 Thread Dejan Bosanac
Hi Josh, that's the job of inactivity monitor when using the OpenWire. Unfortunately Stomp doesn't support that in version 1.0 and it is something we want to add in the next version of the spec. Maybe implementing something like that on the application level would help in your case? Cheers -- Dej

Disabling persistence and paging messages (virtual memory)

2010-04-14 Thread odobas
I know this has been discussed over and over again, I browsed through existing postings, but it's still not clear and it looks like it's not clear for a bunch of people. So I’ll ask through examples, hopefully we can all be clear, once for all. :) I have disabled persistence with: and commented

Re: Running ActiveMQ and having a database failover

2010-04-14 Thread Dejan Bosanac
Hi, if you're sure that only one broker will use database, you can try setting useDatabaseLock to false 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 We

Re: Messages stuck after Client host reboot

2010-04-14 Thread Josh Carlson
Hmm. If a timeout was the solution to this problem how would you be able to tell the difference between something being wrong and the client just being slow. I did an strace on the server and discovered how the timeout is being used. As a parameter to poll 6805 10:31:15 poll([{fd=94, events

Re: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory

2010-04-14 Thread jguerra
Thanks Gary! you are absolutely right. I messed up my classpath with two versions of ActiveMQ (5.3.0 & 5.3.1). Now is working fine! -- View this message in context: http://old.nabble.com/org.apache.activemq.ActiveMQConnectionFactory-cannot-be-cast-to-javax.jms.ConnectionFactory-tp28241226p28244

Re: Running ActiveMQ and having a database failover

2010-04-14 Thread icfantv
That's a neat idea, but unfortunately for us it does not appear that Postgresql supports a failover parameter in the connection URL. Additionally, even if it did, it would depend on how it handled the failover so as to not cause ActiveMQ to puke. We use a floating IP address to point to the "pri

Re: BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Dejan Bosanac
No problem. Glad that's sorted. 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 Wed, Apr 14, 2010 at 5:16 PM, Chet Graham wrote: > > Hi Dejan, > > It loo

Re: BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Chet Graham
Hi Dejan, It looks like my mistake. My Browser corrupted the first download, and when i went to subsequent mirrors it was renaming the downloads by appending .1, .2, etc. I did not notice this so each time i did the verify it was was still looking at the first file. I deleted the corrupted dow

Re: BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Dejan Bosanac
Hi, I talked too soon as the asc file I downloaded was renamed by the browser during the download. I just repeated the procedure on the clean machine and everything looks good dej...@dejanb-desktop:~/downloads/test$ ll total 32392 drwxr-xr-x 2 dejanb dejanb 4096 2010-04-14 16:57 . drwxr-xr-x

Re: BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Dejan Bosanac
Hi Chet, I get the same error. I'll investigate what's the problem. But I think you're safe using the release in the meantime. Alternatively, you can build it yourself. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http:

Re: BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Dejan Bosanac
Hi, let me try to verify it ... and see where the problem is. 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 Wed, Apr 14, 2010 at 4:04 PM, Chet Graham w

BAD signature on ActiveMQ 5.3.1 unix binary download?

2010-04-14 Thread Chet Graham
I've downloaded the following from several mirrors: 33068436 Apr 14 09:12 apache-activemq-5.3.1-bin.tar.gz 197 Apr 14 09:51 apache-activemq-5.3.1-bin.tar.gz.asc 14086 Apr 14 09:24 KEYS.txt and performed these steps: gpg --import KEYS.txt gpg: key F5BA7E4F: "Hiram Chirino " not cha

Re: KahaDB persistence adapter directory setting

2010-04-14 Thread Gary Tully
There is a dataDirectory attribute on the broker bean that overrides that default. On 14 April 2010 12:49, wistonia wrote: > > Using ActiveMQ 5.3.0 Tomcat 6.0.20 I have the following directory > configured > for persistence: > > > > > > This directory is created and populated, however, anothe

Re: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory

2010-04-14 Thread Gary Tully
there must be two versions of the javax.jms.ConnectionFactory class loaded by the jvm. Check for duplicate javax.jms providers in the classpath On 14 April 2010 13:07, jguerra wrote: > > just for a note. I am using JNDI on Tomcat 6.0.24. > -- > View this message in context: > http://old.nabble.c

Re: Messages stuck after Client host reboot

2010-04-14 Thread Josh Carlson
Thanks Gary for the, as usual, helpful information. It looks like the broker maybe suffering from exactly the same problem we encountered when implementing client-side failover. Namely that when the master broker went down a subsequent read on the socket by the client would hang (well actually

Re: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory

2010-04-14 Thread jguerra
just for a note. I am using JNDI on Tomcat 6.0.24. -- View this message in context: http://old.nabble.com/org.apache.activemq.ActiveMQConnectionFactory-cannot-be-cast-to-javax.jms.ConnectionFactory-tp28241226p28241750.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

KahaDB persistence adapter directory setting

2010-04-14 Thread wistonia
Using ActiveMQ 5.3.0 Tomcat 6.0.20 I have the following directory configured for persistence: This directory is created and populated, however, another activemq-data directory also appears containing tmp-storage directories. Have I missed something in my configuration? Thanks -- View this

org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.ConnectionFactory

2010-04-14 Thread jguerra
Hi all, Has anybody idea how to get rid of this exception?. For some reason i have attached a JNDI resource for JMS but it seems to me something is wrong with the returned object, throwing out the exception: ... ConnectionFactory factory = (ConnectionFactory) ctx.lookup("java:comp/env/jms/Connec

Re: Messages stuck after Client host reboot

2010-04-14 Thread Gary Tully
The re-dispatch is triggered by the tcp connection dying, netstat can help with the diagnosis here. Check the connection state of the broker port after the client host is rebooted, if the connection is still active, possibly in a timed_wait state, you may need to configure some additional timeout o

Re: Getting IllegalAgrEception while Sending BlobMessage

2010-04-14 Thread ireneshy
Hi, I'm using the version 'apache-activemq-5.3.1',and the code here. Maybe something wrong with the configuration? The activemq.xml is like this: file:${activemq.base}/conf/credentials.properties

Re: Messages stuck after Client host reboot

2010-04-14 Thread Dejan Bosanac
Hi Josh, can you create a reproducible test case for this and create a Jira? 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 Tue, Apr 13, 2010 at 8:43 PM,

Re: Getting IllegalAgrEception while Sending BlobMessage

2010-04-14 Thread Dejan Bosanac
Hi, what version are you using and can you post your code? 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 Wed, Apr 14, 2010 at 5:11 AM, ireneshy wrote:

Re: ActiveMQ using too much bandwidth

2010-04-14 Thread Dejan Bosanac
Hi John, maybe you can consider using network of brokers over the WAN and then connect your consumers locally to the second broker. That will give you better bandwidth and more fail tolerant solution. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource