kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-1429] JMS Example: Should use ActiveMQ instead of (inactive) OpenJMS #2834

Closed rju closed 1 week ago

rju commented 1 week ago

JIRA Issue: KIEKER-1429 JMS Example: Should use ActiveMQ instead of (inactive) OpenJMS Original Reporter: Andre van Hoorn


rju commented 1 week ago

author André van Hoorn -- Wed, 14 Sep 2011 17:20:35 +0200

Instructions for ActiveMQ

Download

Download Apache ActiveMQ: http://activemq.apache.org/activemq-550-release.html

Preparing the Example

Copy the following Jar files from the ActiveMQ distribution to the example's lib directory

kieker.monitoring.writer.jms.AsyncJMSWriter.ProviderUrl=tcp://127.0.0.1:61616/
kieker.monitoring.writer.jms.AsyncJMSWriter.ContextFactoryType=org.apache.activemq.jndi.ActiveMQInitialContextFactory

Preparing and starting the ActiveMQ Server

Unix/Linux/Cygwin

chmod +x bin/activemq
$ bin/activemq setup ~/.activemqrc
INFO: Creating configuration file: /home/avanhoorn/.activemqrc
INFO: It's recommend to limit access to '/home/avanhoorn/.activemqrc' to the priviledged user
INFO: (recommended: chown avanhoorn:nogroup '/home/avanhoorn/.activemqrc'; chmod 600 '/home/avanhoorn/.activemqrc')

In case you get the following error

$ bin/activemq 
/bin/sh: Can't open

you need to convert the the windows line-breaks to Unix line-breaks, e.g. using your favorite editor or the dos2unix tool.

Adjust the file owner and permissions

$ chmod 600 '/home/avanhoorn/.activemqrc'

Run

$ bin/activemq start
INFO: Loading '/home/avanhoorn/.activemqrc'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/home/avanhoorn/svn_work/kieker/software/kieker/trunk/examples/userguide/appendix-JMS/apache-activemq-5.5.0/data/activemq.pid' (pid '4540')

Stop

bin/activemq stop

Windows

TODO

rju commented 1 week ago

author André van Hoorn -- Thu, 15 Sep 2011 15:28:58 +0200

Instructions for HornetQ

Download

Download HornetQ: http://www.jboss.org/hornetq/downloads.html

Preparing the example

(for a description of the required jars, see the HornetQ documentation)

HornetQ configuration

Add the following queue to the config/stand-alone/non-clustered/hornetq-jms.xml configuration file:

   <queue name="ExampleQueue">
      <entry name="/queue/queue1"/>
  </queue>

Run

Note, that the run.sh most be called from within the bin/ directory!

$ ./run.sh
rju commented 1 week ago

author André van Hoorn -- Fri, 16 Sep 2011 12:06:19 +0200

Adjusted the JMS example to work with ActiveMQ and HornetQ in r1922/kieker.

The instructions to be found in [/ticket/122#comment:5] and [/ticket/122#comment:6] need to be put incorporated into the user guide chapter.

rju commented 1 week ago

author André van Hoorn -- Fri, 16 Sep 2011 18:05:42 +0200

Changed the description in the user guide in r1923/kieker.