Reputation: 11537
I want to configure an ActiveMQ broker to use a jaas authentication plugin. I know this can be done using xml-configuration using something like below
<broker useJmx="false" persistent="false" xmlns="http://activemq.apache.org/schema/core" populateJMSXUserID="true">
<plugins>
<!-- use JAAS to authenticate using the login.config file on the classpath to configure JAAS -->
<jaasAuthenticationPlugin configuration="activemq-domain" />
</plugins>
</broker>
. But afaik this also requires me to bring spring-stuff to the classpath, something i would like to avoid. Can the broker plugins be started in some other ways
Upvotes: 0
Views: 1443
Reputation: 1186
You can use the BrokerService
to start an activemq broker from within Java code.
You can call a variety of configuration methods on the respective object. See http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html for more detail. The site has an example for the jaas plugin.
Upvotes: 3