Hello,

I wrote to this group earlier
(https://www.mail-archive.com/dev@activemq.apache.org/msg67666.html)
and got a response regarding migrating plugin from AMQ to Artemis. But
honestly even after reading links provided by Garry Tully I can't
figure out how I should proceed. My plugin extends BrokerFilter
(import org.apache.activemq.broker.BrokerFilter) and uses most/all
available methods: start(), addConnection(), removeConnection(),
addConsumer(), removeConsumer(), addDestination(),
addDestinationInfo(), removeDestination(), removeDestinationInfo(),
addProducer() and send().

My first problem is that the first thing I want to do is to retrieve
the certificate from connection (so probably getTransportConnection()
from RemotingConnection in Artemis should be used?), parse it, read
few fields and store proper information in SecurityContext associated
with this connection. Later this info is used to determine whether a
connected client can create, delete or send messages to specific
destinations (queues/topics?). Plugin also sends information about
connecting/disconnecting clients and so on to predefined queue.

I tried to figure out how the JAAS plugin can be used for this, but
JAAS as a whole seems to be overly complicated and I'd rather
reimplement everything from scratch than try to figure out how to use
such umm...  well regarded and mature solution.

Is there some set of classes allowing for 1 to 1 translation of
ActiveMQ to Artemis plugins?

TIA,
-- 
Jędrzej Dudkiewicz

I really hate this damn machine, I wish that they would sell it.
It never does just what I want, but only what I tell it.

Reply via email to