[daisy] Example for cache invalidation with AcvtiveMQ

Bruno Dumon bruno at outerthought.org
Tue Sep 12 04:27:17 CDT 2006


On Tue, 2006-09-12 at 10:11 +0200, Aaron.Digulla at Globus.ch wrote:
> >> > Use these as context properties (I get this from <wikidata
> >> > dir>/daisy.xconf):
> >> >
> >> >        <property name="java.naming.provider.url" 
> >> value="tcp://localhost:61616"/>
> >> >        <property name="java.naming.factory.initial" 
> >> value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
> >> >        <property name="topic.daisy" value="daisy"/>
> >> 
> >> Well, that doesn't work:
> >
> > Just to be sure: you did add the "topic.daisy" entry?
> 
> Nope, I just did a cut&paste of the file as it was created by the 
> installer.

Huh? Don't understand what you're trying to say.

> 
> Or should I add "topic.daisy" somewhere else?

In the code snippet you showed earlier:

>         private static final String JMS_TOPIC_NAME = "daisy";
>         Properties contextProperties = new Properties();
>         contextProperties.put("java.naming.provider.url", 
> "tcp://localhost:61616/");
>         contextProperties.put("java.naming.factory.initial", 
> "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
>         jmsClient = new JmsClientImpl(contextProperties,
JMS_USER_NAME, 
> JMS_PASSWORD, "ConnectionFactory", "ConnectionFactory", new 
> ConsoleLogger());

there is no:

contextProperties.put("topic.daisy", "daisy");

so I just wanted to check if you added that.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list