Merge branch #65
This commit is contained in:
commit
f99a018a24
|
@ -593,11 +593,14 @@ public class JMSServerManagerImpl implements JMSServerManager, ActivateCallback
|
|||
|
||||
ArrayList<String> bindingsToAdd = new ArrayList<String>();
|
||||
|
||||
for (String bindingsItem : bindings)
|
||||
if (bindings != null)
|
||||
{
|
||||
if (bindToBindings(bindingsItem, destination))
|
||||
for (String bindingsItem : bindings)
|
||||
{
|
||||
bindingsToAdd.add(bindingsItem);
|
||||
if (bindToBindings(bindingsItem, destination))
|
||||
{
|
||||
bindingsToAdd.add(bindingsItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ public class ActiveMQBootstrap
|
|||
securityConfiguration = new SecurityConfiguration();
|
||||
}
|
||||
|
||||
createServer(configuration);
|
||||
createServer(configuration, jmsFileConfiguration);
|
||||
|
||||
if (waitOnStart)
|
||||
{
|
||||
|
@ -168,7 +168,7 @@ public class ActiveMQBootstrap
|
|||
}
|
||||
}
|
||||
|
||||
private void createServer(Configuration configuration) throws Exception
|
||||
private void createServer(Configuration configuration, JMSConfiguration jmsFileConfiguration) throws Exception
|
||||
{
|
||||
if (nodeId != null && !nodeId.equals("") && !nodeId.equals("null"))
|
||||
{
|
||||
|
@ -188,7 +188,7 @@ public class ActiveMQBootstrap
|
|||
securityManager != null ? securityManager : new ActiveMQSecurityManagerImpl(securityConfiguration));
|
||||
}
|
||||
|
||||
manager = new JMSServerManagerImpl(server);
|
||||
manager = new JMSServerManagerImpl(server, jmsFileConfiguration);
|
||||
manager.start();
|
||||
}
|
||||
|
||||
|
@ -243,20 +243,12 @@ public class ActiveMQBootstrap
|
|||
{
|
||||
try
|
||||
{
|
||||
if (!spawned)
|
||||
{
|
||||
manager.getActiveMQServer()
|
||||
.stop(true);
|
||||
manager.stop();
|
||||
manager = null;
|
||||
server = null;
|
||||
killFile.delete();
|
||||
}
|
||||
else
|
||||
{
|
||||
killFile.delete();
|
||||
Runtime.getRuntime().halt(777);
|
||||
}
|
||||
manager.getActiveMQServer()
|
||||
.stop(true);
|
||||
manager.stop();
|
||||
manager = null;
|
||||
server = null;
|
||||
killFile.delete();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -267,7 +259,7 @@ public class ActiveMQBootstrap
|
|||
{
|
||||
try
|
||||
{
|
||||
createServer(configuration);
|
||||
createServer(configuration, jmsFileConfiguration);
|
||||
restartFile.delete();
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Loading…
Reference in New Issue