diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java index de23693349..e0f21f73da 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerView.java @@ -117,6 +117,10 @@ public class BrokerView implements BrokerViewMBean { public boolean isStatisticsEnabled() { return broker.getDestinationStatistics().isEnabled(); } + + public boolean isPersistent() { + return brokerService.isPersistent(); + } public void terminateJVM(int exitCode) { System.exit(exitCode); diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java index f206911776..42e1d4f1d4 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/BrokerViewMBean.java @@ -61,6 +61,8 @@ public interface BrokerViewMBean extends Service { long getMemoryLimit(); void setMemoryLimit(long limit); + + boolean isPersistent(); /** * Shuts down the JVM. diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorView.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorView.java index 4867b64860..a65bc007ca 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorView.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorView.java @@ -69,6 +69,10 @@ public class NetworkConnectorView implements NetworkConnectorViewMBean { public boolean isDynamicOnly() { return connector.isDynamicOnly(); } + + public boolean isDuplex() { + return connector.isDuplex(); + } public void setBridgeTempDestinations(boolean bridgeTempDestinations) { connector.setBridgeTempDestinations(bridgeTempDestinations); diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorViewMBean.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorViewMBean.java index eb9d4dca30..924b1c30fe 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorViewMBean.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/NetworkConnectorViewMBean.java @@ -37,6 +37,8 @@ public interface NetworkConnectorViewMBean extends Service { boolean isDispatchAsync(); boolean isDynamicOnly(); + + boolean isDuplex(); void setBridgeTempDestinations(boolean bridgeTempDestinations);