activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r783025 - in /activemq/trunk: activemq-web-console/pom.xml activemq-web-console/src/main/webapp/WEB-INF/activemq.xml activemq-web/pom.xml activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java
Date Tue, 09 Jun 2009 15:03:47 GMT
Author: dejanb
Date: Tue Jun  9 15:03:47 2009
New Revision: 783025

URL: http://svn.apache.org/viewvc?rev=783025&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-1324 - additional changes to make the console
work nice in osgi environment and with remote brokers

Modified:
    activemq/trunk/activemq-web-console/pom.xml
    activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/activemq.xml
    activemq/trunk/activemq-web/pom.xml
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java

Modified: activemq/trunk/activemq-web-console/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web-console/pom.xml?rev=783025&r1=783024&r2=783025&view=diff
==============================================================================
--- activemq/trunk/activemq-web-console/pom.xml (original)
+++ activemq/trunk/activemq-web-console/pom.xml Tue Jun  9 15:03:47 2009
@@ -40,8 +40,6 @@
             WEB-INF/lib/activation*.jar,
             WEB-INF/lib/activeio*.jar,
             WEB-INF/lib/activemq-console*.jar,
-            WEB-INF/lib/activemq-core*.jar,
-            WEB-INF/lib/activemq-xmpp*.jar,
             WEB-INF/lib/geronimo*.jar,
             WEB-INF/lib/xml-apis*.jar,
             WEB-INF/lib/xerces*.jar

Modified: activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/activemq.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/activemq.xml?rev=783025&r1=783024&r2=783025&view=diff
==============================================================================
--- activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/activemq.xml (original)
+++ activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/activemq.xml Tue Jun  9 15:03:47
2009
@@ -15,7 +15,15 @@
     limitations under the License.
 -->
         <!-- START SNIPPET: xbean -->
-<beans>
+<beans
+  xmlns="http://www.springframework.org/schema/beans"
+  xmlns:amq="http://activemq.apache.org/schema/core"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:osgi="http://www.springframework.org/schema/osgi"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
  
+  http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+  http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
 
 
   <broker useJmx="true" xmlns="http://activemq.apache.org/schema/core">

Modified: activemq/trunk/activemq-web/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/pom.xml?rev=783025&r1=783024&r2=783025&view=diff
==============================================================================
--- activemq/trunk/activemq-web/pom.xml (original)
+++ activemq/trunk/activemq-web/pom.xml Tue Jun  9 15:03:47 2009
@@ -26,7 +26,7 @@
   </parent>
 
   <artifactId>activemq-web</artifactId>
-  <packaging>jar</packaging>
+  <packaging>bundle</packaging>
   <name>ActiveMQ :: Web</name>
   <description>Web Connector for REST API and Streamlets support</description>
   

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java?rev=783025&r1=783024&r2=783025&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/RemoteJMXBrokerFacade.java
Tue Jun  9 15:03:47 2009
@@ -58,7 +58,15 @@
         this.brokerName = brokerName;
     }
 
-    /**
+    public WebConsoleConfiguration getConfiguration() {
+		return configuration;
+	}
+
+	public void setConfiguration(WebConsoleConfiguration configuration) {
+		this.configuration = configuration;
+	}
+
+	/**
      * Shutdown this facade aka close any open connection.
      */
     public void shutdown() {
@@ -76,7 +84,7 @@
 	}
 
     public BrokerViewMBean getBrokerAdmin() throws Exception {
-        MBeanServerConnection connection = getConnection();
+        MBeanServerConnection connection = getMBeanServerConnection();
 
         Set brokers = findBrokers(connection);
         if (brokers.size() == 0) {
@@ -89,13 +97,10 @@
 
     public String getBrokerName() throws Exception,
 			MalformedObjectNameException {
-		MBeanServerConnection connection = getMBeanServerConnection();
-		ObjectName brokerObjectName = getBrokerObjectName(connection);
-		String brokerName = brokerObjectName.getKeyProperty("BrokerName");
-		return brokerName;
-	}
+        return getBrokerAdmin().getBrokerName();
+    }
     
-    protected MBeanServerConnection getConnection() throws IOException {
+    protected MBeanServerConnection getMBeanServerConnection() throws Exception {
         JMXConnector connector = this.connector;
         if (isConnectionActive(connector)) {
             return connector.getMBeanServerConnection();
@@ -200,10 +205,12 @@
 		Set<ObjectName> brokers = connection.queryNames(name, null);
 		return brokers;
 	}
+	
 	public void purgeQueue(ActiveMQDestination destination) throws Exception {
 		QueueViewMBean queue = getQueue(destination.getPhysicalName());
 		queue.purge();
 	}
+	
 	public ManagementContext getManagementContext() {
 		throw new IllegalStateException("not supported");
 	}



Mime
View raw message