Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-608

Document how to add user-provided classes to Broker class path

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 2.5.0
    • Broker

    Description

      Broker reads the lib directory in the broker home directory and a lib directory *in the broker instance directory* and jar files in these directories are put on the class path. To provide my own Interceptor or something, it should be built into a jar and (together with all depending jars) dropped into the instance's lib directory, so it can be found by the broker.

      This deserves to be written up in the documentation. I believe that the only place this is described (the part about the instance's lib at least) is http://activemq.2283324.n4.nabble.com/Adding-custom-decoder-into-Artemis-classpath-td4707493.html.

      Appropriate place for this explanation might be be docs/user-manual/en/using-server.md

      There are few references to it, I managed to find docs/user-manual/en/intercepting-operations.md and docs/user-manual/en/persistence.md which say

      The interceptors classes (and their dependencies) must be added to the server classpath to be properly instantiated and called.

      Add the appropriate JDBC driver libraries to the Artemis runtime. You can do this by dropping the relevant jars in the lib folder of the ActiveMQ Artemis distribution.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: