I think this question is probably best answered by the JBoss community as the 
problem is almost certainly related to classloading and/or dependency 
management.  In general there are a couple of things that don't make sense to 
me about what you've described:

  1) You've configured your broker to use a class that you've deployed in a WAR 
file.  But the broker itself is almost certainly started by the application 
server before applications (e.g. your WAR) are deployed.  How then can the 
broker access a class that isn't available?

  2) The whole "token based authentication" plugin thing seems completely 
redundant to me.  If you've enabled security properly this kind of check 
already happens.  If a user doesn't exist then they aren't allowed to connect.  
Perhaps I'm missing something, but I don't see why you actually need this 
plugin.


Justin

----- Original Message -----
From: "aragoubi" <aymen....@gmail.com>
To: users@activemq.apache.org
Sent: Tuesday, May 30, 2017 9:03:32 AM
Subject: load class from activeMQ broker config

I have an activemq broker deployed inside my jboss server.
I am following this link in order to limit the connectivity to the ActiveMQ
server based on Token 
*https://mariuszprzydatek.com/2014/01/04/token-based-authentication-plugin-for-activemq/*.

I created a project named "authentification" in eclipse containing the two
classes "TokenAuthentificationPlugin" and "TokenAuthentificationBroker" and
deployed it in my server as a war file.

My question is how can I get reference to the tokenAuthenticationPlugin
class from my broker config file.
I tried this : 
 <bean id="tokenAuthenticationPlugin"
class="authentification.TokenAuthentificationPlugin"
xmlns="http://www.springframework.org/schema/beans";> 

But I am getting this error when activemq start to be deployed : Caused by:
java.lang.ClassNotFoundException:
authentification.TokenAuthentificationPlugin from [Module
"deployment.activemq-rar-5.9.0.rar:main" from Service Module Loader].

Could someone help me with this? 



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/load-class-from-activeMQ-broker-config-tp4726700.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to