servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r538038 [1/2] - in /incubator/servicemix/branches/osgi/servicemix-osgi: ./ bundles/ bundles/commons-logging/ bundles/ejb/ bundles/geronimo-transaction/ bundles/howl/ bundles/j2ee-connector/ bundles/j2ee-management/ bundles/jta/ jmx/ jmx/org...
Date Tue, 15 May 2007 02:06:15 GMT
Author: gnodet
Date: Mon May 14 19:06:12 2007
New Revision: 538038

URL: http://svn.apache.org/viewvc?view=rev&rev=538038
Log:
Check in osgi stuff in progress

Added:
    incubator/servicemix/branches/osgi/servicemix-osgi/
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/JmxServerImpl.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/jmx/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/naming/
    incubator/servicemix/branches/osgi/servicemix-osgi/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/pom.xml   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/osgi/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/osgi/transaction/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/osgi/transaction/manager/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/osgi/transaction/manager/impl/
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/org.apache.servicemix.osgi.transaction.manager/src/main/java/org/apache/servicemix/osgi/transaction/manager/impl/Activator.java   (with props)
    incubator/servicemix/branches/osgi/servicemix-osgi/transaction/pom.xml   (with props)

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>commons-logging</pkgArtifactId>
+        <pkgVersion>1.1</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+        </dependency>
+    </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${felix.version}</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <goals>
+              <goal>bundle</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Export-Package>*;version=${pkgVersion}</Export-Package>
+            <Import-Package>org.apache.log4j;resolution:=optional,
+                            com.sun.jdmk.com;resolution:=optional,
+                            javax.servlet;resolution:=optional,
+                            org.apache.avalon.framework.logger;resolution:=optional,
+                            org.apache.log;resolution:=optional,
+                            *</Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/commons-logging/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>ejb</pkgArtifactId>
+        <pkgVersion>3.0</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-${pkgArtifactId}_${pkgVersion}_spec</artifactId>
+            <version>1.0</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>geronimo-transaction</pkgArtifactId>
+        <pkgVersion>2.0-SNAPSHOT</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.modules</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <exclusions>
+              <exclusion>
+                <groupId>org.apache.geronimo.modules</groupId>
+                <artifactId>geronimo-core</artifactId>
+              </exclusion>
+              <exclusion>
+                <groupId>org.apache.geronimo.modules</groupId>
+                <artifactId>geronimo-j2ee</artifactId>
+              </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${felix.version}</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <goals>
+              <goal>bundle</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Export-Package>*;version=${pkgVersion}</Export-Package>
+            <Import-Package>org.apache.geronimo.gbean;resolution:=optional,
+                            org.apache.geronimo.system.serverinfo;resolution:=optional,
+                            *</Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/geronimo-transaction/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>howl</pkgArtifactId>
+        <pkgVersion>1.0.1-1</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.objectweb.howl</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/howl/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>j2ee-connector</pkgArtifactId>
+        <pkgVersion>1.5</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-${pkgArtifactId}_${pkgVersion}_spec</artifactId>
+            <version>1.1.1</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-connector/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>j2ee-management</pkgArtifactId>
+        <pkgVersion>1.1</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-${pkgArtifactId}_${pkgVersion}_spec</artifactId>
+            <version>1.0-M1</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/j2ee-management/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1,2 @@
+.classpath
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License. 
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.servicemix.osgi</groupId>
+        <artifactId>bundles</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <properties>
+        <pkgArtifactId>jta</pkgArtifactId>
+        <pkgVersion>1.1</pkgVersion>
+        <pomVersion>1.0-SNAPSHOT</pomVersion>
+    </properties>
+    <groupId>org.apache.servicemix.osgi.bundles</groupId>
+    <artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
+    <version>${pkgVersion}-${pomVersion}</version>
+    <packaging>bundle</packaging>
+    <name>ServiceMix OSGI Common Bundles: ${pkgArtifactId}</name>
+    <description>
+        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
+    </description>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-${pkgArtifactId}_${pkgVersion}_spec</artifactId>
+            <version>1.1</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/jta/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,104 @@
+<?xml version="1.0"?>
+<project>
+
+  <parent>
+    <groupId>org.apache.servicemix</groupId>
+    <artifactId>osgi</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <name>ServiceMix OSGI Common Bundles</name>
+  <groupId>org.apache.servicemix.osgi</groupId>
+  <artifactId>bundles</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0-SNAPSHOT</version>
+
+  <modules>
+    <module>geronimo-transaction</module>
+    <module>jta</module>
+    <module>ejb</module>
+    <module>j2ee-connector</module>
+    <module>j2ee-management</module>
+    <module>howl</module>
+    <module>commons-logging</module>
+  </modules>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${felix.version}</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <goals>
+              <goal>bundle</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Export-Package>*;version=${pkgVersion}</Export-Package>
+            <Import-Package>*</Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <!--
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-jbi</artifactId>
+      <version>3.1.1-incubating</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.apache.geronimo.specs</groupId>
+          <artifactId>geronimo-qname_1.1_spec</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.geronimo.specs</groupId>
+          <artifactId>geronimo-activation_1.0.2_spec</artifactId>
+        </exclusion>
+      </exclusions>
+      <dependencies>
+        <dependency>
+          <groupId>javax.activation</groupId>
+          <artifactId>activation</artifactId>
+          <version>1.1</version>
+        </dependency>
+      </dependencies>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${felix.version}</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <goals>
+              <goal>bundleall</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Export-Package>*;version=${pkgVersion}</Export-Package>
+            <Import-Package>*</Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  -->
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/bundles/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1 @@
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  
+  <!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  -->
+
+  <parent>
+    <groupId>org.apache.servicemix.osgi</groupId>
+    <artifactId>jmx</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>jar</packaging>
+  <name>ServiceMix OSGI JMX RMI Registry</name>
+  <groupId>org.apache.servicemix.osgi.jmx</groupId>
+  <artifactId>org.apache.servicemix.osgi.jmx.registry</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>${felix.version}</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-Activator>${pom.artifactId}.impl.Activator</Bundle-Activator>
+            <Export-Package>
+              ${pom.artifactId}
+            </Export-Package>
+            <DynamicImport-Package>
+              *
+            </DynamicImport-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java Mon May 14 19:06:12 2007
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.osgi.jmx.registry;
+
+import java.rmi.registry.Registry;
+
+/**
+ * 
+ * @author gnodet
+ */
+public interface RmiRegistry extends Registry {
+
+    public int getPort();
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/RmiRegistry.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java Mon May 14 19:06:12 2007
@@ -0,0 +1,40 @@
+package org.apache.servicemix.osgi.jmx.registry.impl;
+
+import java.rmi.registry.LocateRegistry;
+import java.rmi.registry.Registry;
+import java.rmi.server.UnicastRemoteObject;
+
+import org.apache.servicemix.osgi.jmx.registry.RmiRegistry;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+    private RmiRegistryImpl registry;
+
+    /**
+     * Implements BundleActivator.start(). P
+     * @param context the framework context for the bundle.
+    **/
+    public void start(BundleContext context) throws Exception {
+        int port = Registry.REGISTRY_PORT;
+        String portS = context.getProperty("org.apache.servicemix.osgi.jmx.registry.port");
+        if (portS != null) {
+            port = Integer.parseInt(portS);
+        }
+        Registry reg = LocateRegistry.createRegistry(port);
+        registry = new RmiRegistryImpl(reg, port);
+        context.registerService(new String[] { RmiRegistry.class.getName(), Registry.class.getName() }, 
+                                registry, null);
+    }
+
+    /**
+     * Implements BundleActivator.stop(). 
+     * @param context the framework context for the bundle.
+    **/
+    public void stop(BundleContext context) throws Exception {
+        UnicastRemoteObject.unexportObject(registry.getRegistry(), true);
+        registry = null;
+    }
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/Activator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java Mon May 14 19:06:12 2007
@@ -0,0 +1,113 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.osgi.jmx.registry.impl;
+
+import java.rmi.AccessException;
+import java.rmi.AlreadyBoundException;
+import java.rmi.NotBoundException;
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+import java.rmi.registry.Registry;
+
+import org.apache.servicemix.osgi.jmx.registry.RmiRegistry;
+
+/**
+ * 
+ * @author gnodet
+ * @org.apache.xbean.XBean element="rmiRegistry"
+ */
+public class RmiRegistryImpl implements RmiRegistry {
+
+    private Registry registry;
+    private int port;
+    
+    public RmiRegistryImpl(Registry registry, int port) {
+        this.registry = registry;
+        this.port = port;
+    }
+    
+    /**
+     * @param name
+     * @param obj
+     * @throws RemoteException
+     * @throws AlreadyBoundException
+     * @throws AccessException
+     * @see java.rmi.registry.Registry#bind(java.lang.String, java.rmi.Remote)
+     */
+    public void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException, AccessException {
+        registry.bind(name, obj);
+    }
+
+    /**
+     * @return
+     * @throws RemoteException
+     * @throws AccessException
+     * @see java.rmi.registry.Registry#list()
+     */
+    public String[] list() throws RemoteException, AccessException {
+        return registry.list();
+    }
+
+    /**
+     * @param name
+     * @return
+     * @throws RemoteException
+     * @throws NotBoundException
+     * @throws AccessException
+     * @see java.rmi.registry.Registry#lookup(java.lang.String)
+     */
+    public Remote lookup(String name) throws RemoteException, NotBoundException, AccessException {
+        return registry.lookup(name);
+    }
+
+    /**
+     * @param name
+     * @param obj
+     * @throws RemoteException
+     * @throws AccessException
+     * @see java.rmi.registry.Registry#rebind(java.lang.String, java.rmi.Remote)
+     */
+    public void rebind(String name, Remote obj) throws RemoteException, AccessException {
+        registry.rebind(name, obj);
+    }
+
+    /**
+     * @param name
+     * @throws RemoteException
+     * @throws NotBoundException
+     * @throws AccessException
+     * @see java.rmi.registry.Registry#unbind(java.lang.String)
+     */
+    public void unbind(String name) throws RemoteException, NotBoundException, AccessException {
+        registry.unbind(name);
+    }
+
+    /**
+     * @return the registry
+     */
+    public Registry getRegistry() {
+        return registry;
+    }
+
+    /**
+     * @return the port
+     */
+    public int getPort() {
+        return port;
+    }
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.registry/src/main/java/org/apache/servicemix/osgi/jmx/registry/impl/RmiRegistryImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1 @@
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  
+  <!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  -->
+  
+  <parent>
+    <groupId>org.apache.servicemix.osgi</groupId>
+    <artifactId>jmx</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>jar</packaging>
+  <name>ServiceMix OSGI JMX RMI Connector</name>
+  <groupId>org.apache.servicemix.osgi.jmx</groupId>
+  <artifactId>org.apache.servicemix.osgi.jmx.rmi</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>${felix.version}</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicemix.osgi.jmx</groupId>
+      <artifactId>org.apache.servicemix.osgi.jmx.registry</artifactId>
+      <version>1.0-SNAPSHOT</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${felix.version}</version>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-Activator>${pom.artifactId}.impl.Activator</Bundle-Activator>
+            <Export-Package>
+              ${pom.artifactId}
+            </Export-Package>
+            <DynamicImport-Package>
+              *
+            </DynamicImport-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java Mon May 14 19:06:12 2007
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.osgi.jmx.rmi;
+
+import javax.management.remote.JMXConnectorServerMBean;
+
+/**
+ * 
+ * @author gnodet
+ */
+public interface RmiConnector extends JMXConnectorServerMBean {
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/RmiConnector.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java Mon May 14 19:06:12 2007
@@ -0,0 +1,125 @@
+package org.apache.servicemix.osgi.jmx.rmi.impl;
+
+import java.net.InetAddress;
+
+import javax.management.MBeanServer;
+import javax.management.remote.JMXConnectorServer;
+import javax.management.remote.JMXConnectorServerFactory;
+import javax.management.remote.JMXConnectorServerMBean;
+import javax.management.remote.JMXServiceURL;
+
+import org.apache.servicemix.osgi.jmx.registry.RmiRegistry;
+import org.apache.servicemix.osgi.jmx.rmi.RmiConnector;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceEvent;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+
+public class Activator implements BundleActivator, ServiceListener {
+
+    private RmiConnectorImpl connector;
+
+    private ServiceReference mbsRef;
+
+    private ServiceReference rmiRef;
+
+    private MBeanServer mbs;
+
+    private RmiRegistry rmi;
+    
+    private BundleContext context;
+
+    /**
+     * Implements BundleActivator.start(). P
+     * 
+     * @param context
+     *            the framework context for the bundle.
+     */
+    public void start(BundleContext context) throws Exception {
+        this.context = context;
+        mbsRef = context.getServiceReference(MBeanServer.class.getName());
+        rmiRef = context.getServiceReference(RmiRegistry.class.getName());
+        context.addServiceListener(this, "(|(objectClass=" + RmiRegistry.class.getName() + ")" + "(objectClass="
+                + MBeanServer.class.getName() + "))");
+        if (mbsRef != null && rmiRef != null) {
+            startRmiConnector();
+        }
+    }
+
+    /**
+     * Implements BundleActivator.stop().
+     * 
+     * @param context
+     *            the framework context for the bundle.
+     */
+    public void stop(BundleContext context) throws Exception {
+        stopRmiConnector();
+    }
+
+    /**
+     * Implements ServiceListener.serviceChanged().
+     * 
+     * @param event
+     *            the service event.
+     */
+    public void serviceChanged(ServiceEvent event) {
+        ServiceReference servicereference = event.getServiceReference();
+        String[] ast = (String[]) (servicereference.getProperty("objectClass"));
+        String as = ast[0];
+        switch (event.getType()) {
+        case ServiceEvent.REGISTERED:
+            if (as.equals(RmiRegistry.class.getName())) {
+                rmiRef = servicereference;
+            } else if (as.equals(MBeanServer.class.getName())) {
+                mbsRef = servicereference;
+            }
+            if (rmiRef != null && mbsRef != null) {
+                try {
+                    this.startRmiConnector();
+                } catch (Exception e) {
+                    e.printStackTrace();
+                }
+            }
+            break;
+        case ServiceEvent.UNREGISTERING:
+            try {
+                this.stopRmiConnector();
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+            break;
+        }
+    }
+
+    protected void startRmiConnector() throws Exception {
+        mbs = (MBeanServer) context.getService(mbsRef);
+        rmi = (RmiRegistry) context.getService(rmiRef);
+        if (mbs == null || rmi == null) {
+            return;
+        }
+        int port = rmi.getPort();
+        String url = "service:jmx:rmi:///jndi/rmi://"+ InetAddress.getLocalHost().getHostAddress() + ":" + port + "/jmxrmi";
+        JMXServiceURL address=new JMXServiceURL(url);
+        JMXConnectorServer con = JMXConnectorServerFactory.newJMXConnectorServer(address, null, this.mbs);
+        connector = new RmiConnectorImpl(con);
+        connector.start();
+        context.registerService(new String[] { RmiConnector.class.getName(), JMXConnectorServerMBean.class.getName() }, 
+                                connector, null);
+    }
+    
+    protected void stopRmiConnector() throws Exception {
+        if (connector != null) {
+            connector.stop();
+            connector = null;
+        }
+        if (mbs != null) {
+            context.ungetService(mbsRef);
+            mbs = null;
+        }
+        if (rmi != null) {
+            context.ungetService(rmiRef);
+            rmi = null;
+        }
+    }
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/Activator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java Mon May 14 19:06:12 2007
@@ -0,0 +1,107 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.osgi.jmx.rmi.impl;
+
+import java.io.IOException;
+import java.util.Map;
+
+import javax.management.remote.JMXConnector;
+import javax.management.remote.JMXConnectorServerMBean;
+import javax.management.remote.JMXServiceURL;
+import javax.management.remote.MBeanServerForwarder;
+
+import org.apache.servicemix.osgi.jmx.rmi.RmiConnector;
+
+/**
+ * 
+ * @author gnodet
+ */
+public class RmiConnectorImpl implements RmiConnector {
+
+    private JMXConnectorServerMBean connector;
+
+    public RmiConnectorImpl(JMXConnectorServerMBean connector) {
+        this.connector = connector;
+    }
+
+    /**
+     * @return
+     * @see javax.management.remote.JMXConnectorServerMBean#getAddress()
+     */
+    public JMXServiceURL getAddress() {
+        return connector.getAddress();
+    }
+
+    /**
+     * @return
+     * @see javax.management.remote.JMXConnectorServerMBean#getAttributes()
+     */
+    public Map<String, ?> getAttributes() {
+        return connector.getAttributes();
+    }
+
+    /**
+     * @return
+     * @see javax.management.remote.JMXConnectorServerMBean#getConnectionIds()
+     */
+    public String[] getConnectionIds() {
+        return connector.getConnectionIds();
+    }
+
+    /**
+     * @return
+     * @see javax.management.remote.JMXConnectorServerMBean#isActive()
+     */
+    public boolean isActive() {
+        return connector.isActive();
+    }
+
+    /**
+     * @param mbsf
+     * @see javax.management.remote.JMXConnectorServerMBean#setMBeanServerForwarder(javax.management.remote.MBeanServerForwarder)
+     */
+    public void setMBeanServerForwarder(MBeanServerForwarder mbsf) {
+        connector.setMBeanServerForwarder(mbsf);
+    }
+
+    /**
+     * @throws IOException
+     * @see javax.management.remote.JMXConnectorServerMBean#start()
+     */
+    public void start() throws IOException {
+        connector.start();
+    }
+
+    /**
+     * @throws IOException
+     * @see javax.management.remote.JMXConnectorServerMBean#stop()
+     */
+    public void stop() throws IOException {
+        connector.stop();
+    }
+
+    /**
+     * @param env
+     * @return
+     * @throws IOException
+     * @see javax.management.remote.JMXConnectorServerMBean#toJMXConnector(java.util.Map)
+     */
+    public JMXConnector toJMXConnector(Map<String, ?> env) throws IOException {
+        return connector.toJMXConnector(env);
+    }
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.rmi/src/main/java/org/apache/servicemix/osgi/jmx/rmi/impl/RmiConnectorImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon May 14 19:06:12 2007
@@ -0,0 +1 @@
+.project

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml Mon May 14 19:06:12 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  
+  <!--
+    
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  -->
+  
+  <parent>
+    <groupId>org.apache.servicemix.osgi</groupId>
+    <artifactId>jmx</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>jar</packaging>
+  <name>ServiceMix OSGI JMX Server</name>
+  <groupId>org.apache.servicemix.osgi.jmx</groupId>
+  <artifactId>org.apache.servicemix.osgi.jmx.server</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>
+      <version>${felix.version}</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-Activator>${pom.artifactId}.impl.Activator</Bundle-Activator>
+            <Export-Package>
+              ${pom.artifactId}
+            </Export-Package>
+            <DynamicImport-Package>
+              *
+            </DynamicImport-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java Mon May 14 19:06:12 2007
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.servicemix.osgi.jmx.server;
+
+import javax.management.MBeanServer;
+
+/**
+ * 
+ * @author gnodet
+ */
+public interface JmxServer extends MBeanServer {
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/JmxServer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java?view=auto&rev=538038
==============================================================================
--- incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java (added)
+++ incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java Mon May 14 19:06:12 2007
@@ -0,0 +1,35 @@
+package org.apache.servicemix.osgi.jmx.server.impl;
+
+import java.lang.management.ManagementFactory;
+
+import javax.management.MBeanServer;
+
+import org.apache.servicemix.osgi.jmx.server.JmxServer;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+    private JmxServerImpl server;
+
+    /**
+     * Implements BundleActivator.start(). P
+     * @param context the framework context for the bundle.
+    **/
+    public void start(BundleContext context) throws Exception {
+        MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
+        server = new JmxServerImpl(mbs);
+        context.registerService(new String[] { JmxServer.class.getName(), 
+                                               MBeanServer.class.getName() }, 
+                                server, null);
+    }
+
+    /**
+     * Implements BundleActivator.stop(). 
+     * @param context the framework context for the bundle.
+    **/
+    public void stop(BundleContext context) throws Exception {
+        server = null;
+    }
+
+}

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/servicemix/branches/osgi/servicemix-osgi/jmx/org.apache.servicemix.osgi.jmx.server/src/main/java/org/apache/servicemix/osgi/jmx/server/impl/Activator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message