Help coderanch get a
new server
by contributing to the fundraiser

Chip McCormick

Greenhorn
+ Follow
since Oct 14, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chip McCormick

I just got the same example working with the following command (use ; as separator for Windows):
java -cp activemq-all-5.4.1.jar:. Chat TopicCF topic1 Fred

That jar was copied to the same directory as the class file
---
Details specific to ActiveMQ:

ActiveMQ will need to be running (..apache-activemq-5.4.1/bin/macosx ./activemq start) and you'll need a jndi.properties file in that same directory that looks like

java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url = tcp://localhost:61616
#the URL for Mac is something more like tcp://My-MacBook.local:61616
java.naming.security.principal=system
java.naming.security.credentials=manager

connectionFactoryNames = TopicCF
topic.topic1 = jms.topic1
13 years ago