Hi all,

I found an resolve my problem, so I shared the solution!

The goal is load again the server when we add a private key inside the
keystore.
I used the OSGI mechanism on the update configuration file.
This event stop the server and start again with new config file and so new
all keys inside the keystore.
Here the code to do that:

@Requires // Ipojo dependency injection
private ConfigRepository configRepository;

Configuration[] configs =
configRepository.getConfigAdmin().listConfigurations("org.apache.activemq.server");
if (configs != null && configs.length > 0) {
  // Force to update.
  configs[0].update();
}

Regards



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to