You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/04/17 09:41:29 UTC

[camel] 12/38: CAMEL-13422: Remove camel-rmi component

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch mock
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7203092878179dc614d18e6e786a4c90093607b7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Apr 16 10:23:16 2019 +0200

    CAMEL-13422: Remove camel-rmi component
---
 apache-camel/src/main/descriptors/common-bin.xml   |   2 -
 components/camel-rmi/pom.xml                       |  74 --------
 .../camel-rmi/src/main/docs/rmi-component.adoc     | 159 ----------------
 .../apache/camel/component/rmi/RmiComponent.java   |  55 ------
 .../apache/camel/component/rmi/RmiConsumer.java    | 126 -------------
 .../apache/camel/component/rmi/RmiEndpoint.java    | 165 -----------------
 .../apache/camel/component/rmi/RmiProducer.java    |  45 -----
 .../camel/component/rmi/RmiRegistryBean.java       |  57 ------
 .../org/apache/camel/component/rmi/package.html    |  27 ---
 .../apache/camel/component/rmi/DamnException.java  |  29 ---
 .../apache/camel/component/rmi/EchoService.java    |  34 ----
 .../java/org/apache/camel/component/rmi/IEcho.java |  30 ---
 .../java/org/apache/camel/component/rmi/ISay.java  |  24 ---
 .../camel/component/rmi/RmiConcurrencyTest.java    |  97 ----------
 .../camel/component/rmi/RmiDamnExceptionTest.java  |  80 --------
 .../rmi/RmiIllegalArgumentExceptionTest.java       |  87 ---------
 .../camel/component/rmi/RmiRouteEndpointTest.java  |  48 -----
 .../apache/camel/component/rmi/RmiRouteTest.java   |  82 ---------
 .../camel/component/rmi/RmiRouteTestSupport.java   |  58 ------
 .../org/apache/camel/component/rmi/SayService.java |  41 -----
 .../camel-rmi/src/test/resources/log4j2.properties |  28 ---
 components/pom.xml                                 |   1 -
 parent/pom.xml                                     |  10 -
 .../components-starter/camel-rmi-starter/pom.xml   |  53 ------
 .../springboot/RmiComponentAutoConfiguration.java  | 128 -------------
 .../rmi/springboot/RmiComponentConfiguration.java  |  54 ------
 .../src/main/resources/META-INF/LICENSE.txt        | 203 ---------------------
 .../src/main/resources/META-INF/NOTICE.txt         |  11 --
 .../additional-spring-configuration-metadata.json  |  10 -
 .../src/main/resources/META-INF/spring.factories   |  18 --
 .../src/main/resources/META-INF/spring.provides    |  17 --
 platforms/spring-boot/components-starter/pom.xml   |   1 -
 32 files changed, 1854 deletions(-)

diff --git a/apache-camel/src/main/descriptors/common-bin.xml b/apache-camel/src/main/descriptors/common-bin.xml
index abd6772..9730b86 100644
--- a/apache-camel/src/main/descriptors/common-bin.xml
+++ b/apache-camel/src/main/descriptors/common-bin.xml
@@ -252,7 +252,6 @@
         <include>org.apache.camel:camel-rest-swagger</include>
         <include>org.apache.camel:camel-restlet</include>
         <include>org.apache.camel:camel-ribbon</include>
-        <include>org.apache.camel:camel-rmi</include>
         <include>org.apache.camel:camel-rss</include>
         <include>org.apache.camel:camel-rxjava2</include>
         <include>org.apache.camel:camel-saga</include>
@@ -580,7 +579,6 @@
         <include>org.apache.camel:camel-rest-swagger-starter</include>
         <include>org.apache.camel:camel-restlet-starter</include>
         <include>org.apache.camel:camel-ribbon-starter</include>
-        <include>org.apache.camel:camel-rmi-starter</include>
         <include>org.apache.camel:camel-rss-starter</include>
         <include>org.apache.camel:camel-rxjava2-starter</include>
         <include>org.apache.camel:camel-saga-starter</include>
diff --git a/components/camel-rmi/pom.xml b/components/camel-rmi/pom.xml
deleted file mode 100644
index 8c9682a..0000000
--- a/components/camel-rmi/pom.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
-         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.camel</groupId>
-        <artifactId>components</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>camel-rmi</artifactId>
-    <packaging>jar</packaging>
-    <name>Camel :: RMI</name>
-    <description>Camel RMI support</description>
-
-    <properties>
-    </properties>
-
-    <dependencies>
-
-        <!-- requires camel-core due using bean component -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-core</artifactId>
-        </dependency>
-
-        <!-- test dependencies -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-test</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-api</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-slf4j-impl</artifactId>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
-
-</project>
diff --git a/components/camel-rmi/src/main/docs/rmi-component.adoc b/components/camel-rmi/src/main/docs/rmi-component.adoc
deleted file mode 100644
index 36b1974..0000000
--- a/components/camel-rmi/src/main/docs/rmi-component.adoc
+++ /dev/null
@@ -1,159 +0,0 @@
-[[rmi-component]]
-== RMI Component
-
-*Available as of Camel version 1.0*
-
-The *rmi:* component binds Exchanges to the RMI
-protocol (JRMP).
-
-Since this binding is just using RMI, normal RMI rules still apply
-regarding what methods can be invoked. This component supports only
-Exchanges that carry a method invocation from an interface that extends
-the http://java.sun.com/j2se/1.3/docs/api/java/rmi/Remote.html[Remote]
-interface. All parameters in the method should be either
-http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html[Serializable]
-or `Remote` objects.
-
-Maven users will need to add the following dependency to their `pom.xml`
-for this component:
-
-[source,xml]
-------------------------------------------------------------
-<dependency>
-    <groupId>org.apache.camel</groupId>
-    <artifactId>camel-rmi</artifactId>
-    <version>x.x.x</version>
-    <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-### URI format
-
-[source,java]
-------------------------------------------------------------------
-rmi://rmi-regisitry-host:rmi-registry-port/registry-path[?options]
-------------------------------------------------------------------
-
-For example:
-
-[source,java]
-------------------------------------
-rmi://localhost:1099/path/to/service
-------------------------------------
-
-You can append query options to the URI in the following format,
-`?option=value&option=value&...`
-
-### Options
-
-
-// component options: START
-The RMI component has no options.
-// component options: END
-
-
-
-// endpoint options: START
-The RMI endpoint is configured using URI syntax:
-
-----
-rmi:hostname:port/name
-----
-
-with the following path and query parameters:
-
-==== Path Parameters (3 parameters):
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *hostname* | Hostname of RMI server | localhost | String
-| *name* | *Required* Name to use when binding to RMI server |  | String
-| *port* | Port number of RMI server | 1099 | int
-|===
-
-
-==== Query Parameters (6 parameters):
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *method* (common) | You can set the name of the method to invoke. |  | String
-| *remoteInterfaces* (common) | To specific the remote interfaces. |  | List
-| *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
-| *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
-| *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. |  | ExchangePattern
-| *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
-|===
-// endpoint options: END
-// spring-boot-auto-configure options: START
-=== Spring Boot Auto-Configuration
-
-When using Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
-
-[source,xml]
-----
-<dependency>
-  <groupId>org.apache.camel</groupId>
-  <artifactId>camel-rmi-starter</artifactId>
-  <version>x.x.x</version>
-  <!-- use the same version as your Camel core version -->
-</dependency>
-----
-
-
-The component supports 2 options, which are listed below.
-
-
-
-[width="100%",cols="2,5,^1,2",options="header"]
-|===
-| Name | Description | Default | Type
-| *camel.component.rmi.enabled* | Enable rmi component | true | Boolean
-| *camel.component.rmi.resolve-property-placeholders* | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | Boolean
-|===
-// spring-boot-auto-configure options: END
-
-
-
-### Using
-
-To call out to an existing RMI service registered in an RMI registry,
-create a route similar to the following:
-
-[source,java]
-------------------------------------------------
-from("pojo:foo").to("rmi://localhost:1099/foo");
-------------------------------------------------
-
-To bind an existing camel processor or service in an RMI registry,
-define an RMI endpoint as follows:
-
-[source,java]
--------------------------------------------------------------------------
-RmiEndpoint endpoint= (RmiEndpoint) endpoint("rmi://localhost:1099/bar");
-endpoint.setRemoteInterfaces(ISay.class);
-from(endpoint).to("pojo:bar");
--------------------------------------------------------------------------
-
-Note that when binding an RMI consumer endpoint, you must specify the
-`Remote` interfaces exposed.
-
-In XML DSL you can do as follows from *Camel 2.7* onwards:
-
-[source,xml]
-------------------------------------------------------------------------------------------------------------------------
-    <camel:route>
-        <from uri="rmi://localhost:37541/helloServiceBean?remoteInterfaces=org.apache.camel.example.osgi.HelloService"/>
-        <to uri="bean:helloServiceBean"/>
-    </camel:route>
-------------------------------------------------------------------------------------------------------------------------
-
-### See Also
-
-* Configuring Camel
-* Component
-* Endpoint
-* Getting Started
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiComponent.java b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiComponent.java
deleted file mode 100644
index 845b257..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiComponent.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.camel.Endpoint;
-import org.apache.camel.spi.annotations.Component;
-import org.apache.camel.support.DefaultComponent;
-
-@Component("rmi")
-public class RmiComponent extends DefaultComponent {
-
-    public RmiComponent() {
-    }
-
-    @Override
-    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
-        RmiEndpoint rmi = new RmiEndpoint(uri, this);
-
-        // lookup remote interfaces
-        List<Class<?>> classes = new ArrayList<>();
-        Iterator<?> it = getAndRemoveParameter(parameters, "remoteInterfaces", Iterator.class);
-        while (it != null && it.hasNext()) {
-            Object next = it.next();
-            Class<?> clazz = getCamelContext().getTypeConverter().mandatoryConvertTo(Class.class, next);
-            classes.add(clazz);
-        }
-
-        if (!classes.isEmpty()) {
-            List<Class<?>> interfaces = classes;
-            rmi.setRemoteInterfaces(interfaces);
-        }
-
-        setProperties(rmi, parameters);
-        return rmi;
-    }
-}
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiConsumer.java b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiConsumer.java
deleted file mode 100644
index 1d4fc66..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiConsumer.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
-import java.lang.reflect.Proxy;
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-import java.rmi.registry.Registry;
-import java.rmi.server.UnicastRemoteObject;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Processor;
-import org.apache.camel.component.bean.BeanInvocation;
-import org.apache.camel.support.DefaultConsumer;
-
-/**
- * A {@link org.apache.camel.Consumer Consumer} which uses RMI's {@link UnicastRemoteObject} to consume
- * method invocations.
- */
-public class RmiConsumer extends DefaultConsumer implements InvocationHandler {
-
-    private final RmiEndpoint endpoint;
-    private Remote stub;
-    private Remote proxy;
-
-    public RmiConsumer(RmiEndpoint endpoint, Processor processor) {
-        super(endpoint, processor);
-        this.endpoint = endpoint;
-    }
-
-    @Override
-    protected void doStart() throws Exception {
-        Class<?>[] interfaces = new Class[endpoint.getRemoteInterfaces().size()];
-        endpoint.getRemoteInterfaces().toArray(interfaces);
-        proxy = (Remote)Proxy.newProxyInstance(endpoint.getClassLoader(), interfaces, this);
-        stub = UnicastRemoteObject.exportObject(proxy, endpoint.getPort());
-
-        try {
-            Registry registry = endpoint.getRegistry();
-            String name = endpoint.getName();
-            registry.bind(name, stub);
-
-        } catch (Exception e) {
-            // Registration might fail.. clean up..
-            try {
-                UnicastRemoteObject.unexportObject(stub, true);
-            } catch (Throwable ignore) {
-            }
-            stub = null;
-            throw e;
-        }
-        super.doStart();
-    }
-
-    @Override
-    protected void doStop() throws Exception {
-        super.doStop();
-        try {
-            Registry registry = endpoint.getRegistry();
-            registry.unbind(endpoint.getName());
-        } catch (Throwable e) {
-            // do our best to unregister
-        }
-        UnicastRemoteObject.unexportObject(proxy, true);
-    }
-
-    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
-        if (!isStarted()) {
-            throw new IllegalStateException("The endpoint is not active: " + getEndpoint().getEndpointUri());
-        }
-        BeanInvocation invocation = new BeanInvocation(method, args);
-        Exchange exchange = getEndpoint().createExchange();
-        exchange.getIn().setBody(invocation);
-        try {
-            log.debug("Invoking {} with args {}", method, args);
-            getProcessor().process(exchange);
-        } catch (Exception e) {
-            exchange.setException(e);
-        }
-
-        // is there a matching exception from the signature, then throw that
-        // or fallback and ensure the exception is thrown as a RemoteException
-        Throwable fault = exchange.getException();
-        if (fault != null) {
-            Object match = null;
-            for (Class<?> type : method.getExceptionTypes()) {
-                Object found = exchange.getException(type);
-                if (found != null) {
-                    match = found;
-                    break;
-                }
-            }
-            if (match instanceof Throwable) {
-                // we have a match
-                throw (Throwable) match;
-            } else {
-                throw new RemoteException("Error invoking " + method, fault);
-            }
-        }
-        return exchange.getOut().getBody();
-    }
-
-    public Remote getProxy() {
-        return proxy;
-    }
-
-    public Remote getStub() {
-        return stub;
-    }
-}
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
deleted file mode 100644
index be6b52f..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiEndpoint.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.rmi.RemoteException;
-import java.rmi.registry.LocateRegistry;
-import java.rmi.registry.Registry;
-import java.util.Arrays;
-import java.util.List;
-
-import org.apache.camel.Consumer;
-import org.apache.camel.Processor;
-import org.apache.camel.Producer;
-import org.apache.camel.spi.Metadata;
-import org.apache.camel.spi.UriEndpoint;
-import org.apache.camel.spi.UriParam;
-import org.apache.camel.spi.UriPath;
-import org.apache.camel.support.DefaultEndpoint;
-import org.apache.camel.util.ObjectHelper;
-
-/**
- * The rmi component is for invoking Java RMI beans from Camel.
- */
-@UriEndpoint(firstVersion = "1.0.0", scheme = "rmi", title = "RMI", syntax = "rmi:hostname:port/name", label = "messaging")
-public class RmiEndpoint extends DefaultEndpoint {
-
-    private ClassLoader classLoader;
-    private URI uri;
-
-    @UriPath(description = "Hostname of RMI server", defaultValue = "localhost")
-    private String hostname;
-    @UriPath(description = "Port number of RMI server", defaultValue = "" + Registry.REGISTRY_PORT)
-    private int port;
-    @UriPath(description = "Name to use when binding to RMI server") @Metadata(required = true)
-    private String name;
-    @UriParam
-    private List<Class<?>> remoteInterfaces;
-    @UriParam
-    private String method;
-
-    public RmiEndpoint() {
-    }
-
-    protected RmiEndpoint(String endpointUri, RmiComponent component) throws URISyntaxException {
-        super(endpointUri, component);
-        this.uri = new URI(endpointUri);
-    }
-
-    public boolean isSingleton() {
-        return false;
-    }
-
-    @Override
-    protected String createEndpointUri() {
-        return uri.toString();
-    }
-
-    public Consumer createConsumer(Processor processor) throws Exception {
-        ObjectHelper.notNull(uri, "uri");
-        if (remoteInterfaces == null || remoteInterfaces.size() == 0) {
-            throw new IllegalArgumentException("To create a RMI consumer, the RMI endpoint's remoteInterfaces property must be be configured.");
-        }
-        RmiConsumer answer = new RmiConsumer(this, processor);
-        configureConsumer(answer);
-        return answer;
-    }
-
-    public Producer createProducer() throws Exception {
-        ObjectHelper.notNull(uri, "uri");
-        return new RmiProducer(this);
-    }
-
-    public String getName() {
-        String path = uri.getPath();
-        if (path == null) {
-            path = uri.getSchemeSpecificPart();
-        }
-        // skip leading slash
-        if (path.startsWith("/")) {
-            return path.substring(1);
-        }
-        return path;
-    }
-
-    public Registry getRegistry() throws RemoteException {
-        if (uri.getHost() != null) {
-            if (uri.getPort() == -1) {
-                return LocateRegistry.getRegistry(uri.getHost());
-            } else {
-                return LocateRegistry.getRegistry(uri.getHost(), uri.getPort());
-            }
-        } else {
-            return LocateRegistry.getRegistry();
-        }
-    }
-
-    public List<Class<?>> getRemoteInterfaces() {
-        return remoteInterfaces;
-    }
-
-    /**
-     * To specific the remote interfaces.
-     */
-    public void setRemoteInterfaces(List<Class<?>> remoteInterfaces) {
-        this.remoteInterfaces = remoteInterfaces;
-        if (classLoader == null && !remoteInterfaces.isEmpty()) {
-            classLoader = remoteInterfaces.get(0).getClassLoader();
-        }
-    }
-
-    public void setRemoteInterfaces(Class<?>... remoteInterfaces) {
-        setRemoteInterfaces(Arrays.asList(remoteInterfaces));
-    }
-
-    public ClassLoader getClassLoader() {
-        return classLoader;
-    }
-
-    public void setClassLoader(ClassLoader classLoader) {
-        this.classLoader = classLoader;
-    }
-
-    public int getPort() {
-        return port;
-    }
-
-    public void setPort(int port) {
-        this.port = port;
-    }
-
-    public String getMethod() {
-        return method;
-    }
-
-    /**
-     * You can set the name of the method to invoke.
-     */
-    public void setMethod(String method) {
-        this.method = method;
-    }
-
-    public URI getUri() {
-        return uri;
-    }
-
-    public void setUri(URI uri) {
-        this.uri = uri;
-    }
-}
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java
deleted file mode 100644
index 92b1239..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiProducer.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.NotBoundException;
-import java.rmi.RemoteException;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.component.bean.BeanHolder;
-import org.apache.camel.component.bean.BeanProcessor;
-import org.apache.camel.support.DefaultProducer;
-
-public class RmiProducer extends DefaultProducer {
-
-    private BeanProcessor beanProcessor;
-
-    public RmiProducer(RmiEndpoint endpoint) throws RemoteException, NotBoundException {
-        super(endpoint);
-        BeanHolder holder = new RmiRegistryBean(endpoint.getCamelContext(), endpoint.getName(), endpoint.getRegistry());
-        beanProcessor = new BeanProcessor(holder);
-        String method = endpoint.getMethod();
-        if (method != null) {
-            beanProcessor.setMethod(method);
-        }
-    }
-
-    public void process(Exchange exchange) throws Exception {
-        beanProcessor.process(exchange);
-    }
-
-}
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiRegistryBean.java b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiRegistryBean.java
deleted file mode 100644
index 2186038..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/RmiRegistryBean.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.AccessException;
-import java.rmi.NotBoundException;
-import java.rmi.RemoteException;
-import java.rmi.registry.Registry;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.NoSuchBeanException;
-import org.apache.camel.RuntimeCamelException;
-import org.apache.camel.component.bean.ParameterMappingStrategy;
-import org.apache.camel.component.bean.RegistryBean;
-
-public class RmiRegistryBean extends RegistryBean {
-
-    private final Registry registry;
-
-    public RmiRegistryBean(CamelContext context, String name, Registry registry) {
-        super(context, name);
-        this.registry = registry;
-    }
-
-    public RmiRegistryBean(CamelContext context, String name, ParameterMappingStrategy parameterMappingStrategy, Registry registry) {
-        super(context, name);
-        this.registry = registry;
-        setParameterMappingStrategy(parameterMappingStrategy);
-    }
-
-    @Override
-    protected Object lookupBean() throws NoSuchBeanException {
-        try {
-            return registry.lookup(getName());
-        } catch (NotBoundException e) {
-            throw new NoSuchBeanException(getName(), e);
-        } catch (AccessException e) {
-            throw new RuntimeCamelException(e);
-        } catch (RemoteException e) {
-            throw new RuntimeCamelException(e);
-        }
-    }
-}
diff --git a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/package.html b/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/package.html
deleted file mode 100644
index b2e9843..0000000
--- a/components/camel-rmi/src/main/java/org/apache/camel/component/rmi/package.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-
-    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.
-
--->
-<html>
-<head>
-</head>
-<body>
-
-Defines an RMI Component that can bind PojoExchanges to the Java Remote Method Protocol (JRMP).</a>
-
-</body>
-</html>
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/DamnException.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/DamnException.java
deleted file mode 100644
index a54487a..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/DamnException.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-/**
- *
- */
-public class DamnException extends Exception {
-
-    private static final long serialVersionUID = 1L;
-
-    public DamnException(String s) {
-        super(s);
-    }
-}
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/EchoService.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/EchoService.java
deleted file mode 100644
index 091d070..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/EchoService.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.RemoteException;
-
-public class EchoService implements IEcho {
-
-    public String echo(String s) throws RemoteException {
-        return "Echo " + s;
-    }
-
-    public String damn(String s) throws DamnException, RemoteException {
-        throw new DamnException("Damn this did not work");
-    }
-
-    public String foo(String s) throws RemoteException {
-        throw new IllegalArgumentException("Illegal");
-    }
-}
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/IEcho.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/IEcho.java
deleted file mode 100644
index 126afa5..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/IEcho.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-public interface IEcho extends Remote {
-
-    String echo(String s) throws RemoteException;
-
-    String damn(String s) throws RemoteException, DamnException;
-
-    String foo(String s) throws RemoteException;
-
-}
\ No newline at end of file
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/ISay.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/ISay.java
deleted file mode 100644
index f61d5e1..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/ISay.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-public interface ISay extends Remote {
-    String say() throws RemoteException;
-}
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiConcurrencyTest.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiConcurrencyTest.java
deleted file mode 100644
index 65654b0..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiConcurrencyTest.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.registry.LocateRegistry;
-import java.util.concurrent.Callable;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.impl.JndiRegistry;
-import org.junit.Test;
-
-public class RmiConcurrencyTest extends RmiRouteTestSupport {
-
-    protected int getStartPort() {
-        return 37500;
-    }
-
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        if (classPathHasSpaces()) {
-            return null;
-        }
-
-        LocateRegistry.createRegistry(getPort());
-
-        JndiRegistry context = super.createRegistry();
-        context.bind("echo", new EchoService());
-        return context;
-    }
-
-    @Test
-    public void testNoConcurrentProducers() throws Exception {
-        doSendMessages(1, 1);
-    }
-
-    @Test
-    public void testConcurrentProducers() throws Exception {
-        doSendMessages(10, 5);
-    }
-
-    private void doSendMessages(int files, int poolSize) throws Exception {
-        if (classPathHasSpaces()) {
-            return;
-        }
-
-        getMockEndpoint("mock:result").expectedMessageCount(files);
-        getMockEndpoint("mock:result").assertNoDuplicates(body());
-        getMockEndpoint("mock:result").message(0).body().contains("Echo");
-
-        ExecutorService executor = Executors.newFixedThreadPool(poolSize);
-        for (int i = 0; i < files; i++) {
-            final int index = i;
-            executor.submit(new Callable<Object>() {
-                public Object call() throws Exception {
-                    template.sendBody("direct:echo", "" + index);
-                    return null;
-                }
-            });
-        }
-
-        assertMockEndpointsSatisfied();
-        executor.shutdownNow();
-    }
-
-    @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            @Override
-            public void configure() throws Exception {
-                // setup the jmi server endpoint
-                RmiEndpoint echo = (RmiEndpoint)endpoint("rmi://localhost:" + getPort() + "/echo");
-                echo.setRemoteInterfaces(IEcho.class);
-                from(echo).to("bean:echo");
-
-                // and our route where we call the server
-                from("direct:echo").toF("rmi://localhost:%s/echo?method=echo", getPort()).to("mock:result");
-            }
-        };
-    }
-   
-}
\ No newline at end of file
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiDamnExceptionTest.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiDamnExceptionTest.java
deleted file mode 100644
index 5ad9569..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiDamnExceptionTest.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.registry.LocateRegistry;
-
-import org.apache.camel.CamelExecutionException;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.impl.JndiRegistry;
-import org.junit.Test;
-
-public class RmiDamnExceptionTest extends RmiRouteTestSupport {
-
-    protected int getStartPort() {
-        return 37501;
-    }
-
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        if (classPathHasSpaces()) {
-            return null;
-        }
-
-        LocateRegistry.createRegistry(getPort());
-
-        JndiRegistry context = super.createRegistry();
-        context.bind("echo", new EchoService());
-        return context;
-    }
-
-    @Test
-    public void tesDamn() throws Exception {
-        if (classPathHasSpaces()) {
-            return;
-        }
-
-        getMockEndpoint("mock:result").expectedMessageCount(0);
-
-        try {
-            template.sendBody("direct:echo", "Hello World");
-            fail("Should have thrown an exception");
-        } catch (CamelExecutionException e) {
-            assertIsInstanceOf(DamnException.class, e.getCause());
-            assertEquals("Damn this did not work", e.getCause().getMessage());
-        }
-
-        assertMockEndpointsSatisfied();
-    }
-
-    @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            @Override
-            public void configure() throws Exception {
-                // setup the jmi server endpoint
-                RmiEndpoint echo = (RmiEndpoint)endpoint("rmi://localhost:" + getPort() + "/echo");
-                echo.setRemoteInterfaces(IEcho.class);
-                from(echo).to("bean:echo");
-
-                // and our route where we call the server
-                from("direct:echo").toF("rmi://localhost:%s/echo?method=damn", getPort()).to("mock:result");
-            }
-        };
-    }
-
-}
\ No newline at end of file
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiIllegalArgumentExceptionTest.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiIllegalArgumentExceptionTest.java
deleted file mode 100644
index f5c070f..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiIllegalArgumentExceptionTest.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.RemoteException;
-import java.rmi.registry.LocateRegistry;
-
-import org.apache.camel.CamelExecutionException;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.impl.JndiRegistry;
-import org.junit.Test;
-
-public class RmiIllegalArgumentExceptionTest extends RmiRouteTestSupport {
-    private boolean created;
-
-    protected int getStartPort() {
-        return 37502;
-    }
-
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        if (classPathHasSpaces()) {
-            return null;
-        }
-
-        if (!created) {
-            LocateRegistry.createRegistry(getPort());
-            created = true;
-        }
-
-        JndiRegistry context = super.createRegistry();
-        context.bind("echo", new EchoService());
-        return context;
-    }
-
-    @Test
-    public void tesIllegal() throws Exception {
-        if (classPathHasSpaces()) {
-            return;
-        }
-
-        getMockEndpoint("mock:result").expectedMessageCount(0);
-
-        try {
-            template.sendBody("direct:echo", "Hello World");
-            fail("Should have thrown an exception");
-        } catch (CamelExecutionException e) {
-            assertIsInstanceOf(RemoteException.class, e.getCause());
-            // wrapped far down
-            IllegalArgumentException iae = assertIsInstanceOf(IllegalArgumentException.class, e.getCause().getCause().getCause().getCause());
-            assertEquals("Illegal", iae.getMessage());
-        }
-
-        assertMockEndpointsSatisfied();
-    }
-
-    @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
-        return new RouteBuilder() {
-            @Override
-            public void configure() throws Exception {
-                // setup the jmi server endpoint
-                RmiEndpoint echo = (RmiEndpoint)endpoint("rmi://localhost:" + getPort() + "/echo");
-                echo.setRemoteInterfaces(IEcho.class);
-                from(echo).to("bean:echo");
-
-                // and our route where we call the server
-                from("direct:echo").to("rmi://localhost:" + getPort() + "/echo?method=foo").to("mock:result");
-            }
-        };
-    }
-
-}
\ No newline at end of file
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteEndpointTest.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteEndpointTest.java
deleted file mode 100644
index 63e5797..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteEndpointTest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.net.URI;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.builder.RouteBuilder;
-
-public class RmiRouteEndpointTest extends RmiRouteTest {
-
-    @Override
-    protected RouteBuilder getRouteBuilder(final CamelContext context) {
-        return new RouteBuilder() {
-            @Override
-            public void configure() throws Exception {
-                RmiEndpoint say = new RmiEndpoint();
-                say.setCamelContext(context);
-                say.setUri(new URI("rmi://localhost:" + getPort() + "/bye"));
-
-                from("direct:hello").to(say);
-
-                // When exposing an RMI endpoint, the interfaces it exposes must
-                // be configured.
-                RmiEndpoint bye = new RmiEndpoint();
-                bye.setCamelContext(context);
-                bye.setRemoteInterfaces(ISay.class);
-                bye.setUri(new URI("rmi://localhost:" + getPort() + "/bye"));
-
-                from(bye).to("bean:bye");
-            }
-        };
-    }
-}
\ No newline at end of file
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
deleted file mode 100644
index c4e1c4e..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.rmi.registry.LocateRegistry;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.Endpoint;
-import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.bean.ProxyHelper;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.apache.camel.support.jndi.JndiContext;
-import org.junit.Test;
-
-public class RmiRouteTest extends RmiRouteTestSupport {
-
-    protected int getStartPort() {
-        return 37503;
-    }
-    
-    @Test
-    public void testPojoRoutes() throws Exception {
-        if (classPathHasSpaces()) {
-            return;
-        }
-
-        // Boot up a local RMI registry
-        LocateRegistry.createRegistry(getPort());
-
-        // START SNIPPET: register
-        JndiContext context = new JndiContext();
-        context.bind("bye", new SayService("Good Bye!"));
-
-        CamelContext camelContext = new DefaultCamelContext(context);
-        // END SNIPPET: register
-
-        camelContext.addRoutes(getRouteBuilder(camelContext));
-
-        camelContext.start();
-
-        // START SNIPPET: invoke
-        Endpoint endpoint = camelContext.getEndpoint("direct:hello");
-        ISay proxy = ProxyHelper.createProxy(endpoint, false, ISay.class);
-        String rc = proxy.say();
-        assertEquals("Good Bye!", rc);
-        // END SNIPPET: invoke
-
-        camelContext.stop();
-    }
-
-    protected RouteBuilder getRouteBuilder(final CamelContext context) {
-        return new RouteBuilder() {
-            // START SNIPPET: route
-            // lets add simple route
-            public void configure() {
-                from("direct:hello").toF("rmi://localhost:%s/bye", getPort());
-
-                // When exposing an RMI endpoint, the interfaces it exposes must
-                // be configured.
-                RmiEndpoint bye = (RmiEndpoint)endpoint("rmi://localhost:" + getPort() + "/bye");
-                bye.setRemoteInterfaces(ISay.class);
-                from(bye).to("bean:bye");
-            }
-            // END SNIPPET: route
-        };
-    }
-    
-}
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTestSupport.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTestSupport.java
deleted file mode 100644
index 1ca6a93..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/RmiRouteTestSupport.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-import java.net.URL;
-import java.net.URLClassLoader;
-
-import org.apache.camel.test.AvailablePortFinder;
-import org.apache.camel.test.junit4.CamelTestSupport;
-
-public abstract class RmiRouteTestSupport extends CamelTestSupport {
-    private int port;
-    
-    protected abstract int getStartPort(); 
-    
-
-    protected int getPort() {
-        if (port == 0) {
-            port = AvailablePortFinder.getNextAvailable(getStartPort());
-        }
-        return port;
-    }
-    
-    protected boolean classPathHasSpaces() {
-        ClassLoader cl = getClass().getClassLoader();
-        if (cl instanceof URLClassLoader) {
-            URLClassLoader ucl = (URLClassLoader)cl;
-            URL[] urls = ucl.getURLs();
-            for (URL url : urls) {
-                if (url.getPath().contains(" ")) {
-                    log.error("=======================================================================");
-                    log.error(" TEST Skipped: " + this.getClass().getName());
-                    log.error("   Your probably on windows.  We detected that the classpath");
-                    log.error("   has a space in it.  Try running maven with the following option: ");
-                    log.error("   -Dmaven.repo.local=C:\\DOCUME~1\\userid\\.m2\\repository");
-                    log.error("=======================================================================");
-                    return true;
-                }
-            }
-        }
-        return false;
-    }
-
-}
diff --git a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/SayService.java b/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/SayService.java
deleted file mode 100644
index 733ba1c..0000000
--- a/components/camel-rmi/src/test/java/org/apache/camel/component/rmi/SayService.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * 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.camel.component.rmi;
-
-public class SayService implements ISay {
-    String message = "Hello";
-
-    public SayService() {
-    }
-
-    public SayService(String message) {
-        this.message = message;
-    }
-
-    public String say() {
-        return message;
-    }
-
-    public String getMessage() {
-        return message;
-    }
-
-    public void setMessage(String message) {
-        this.message = message;
-    }
-
-}
diff --git a/components/camel-rmi/src/test/resources/log4j2.properties b/components/camel-rmi/src/test/resources/log4j2.properties
deleted file mode 100644
index 4306917..0000000
--- a/components/camel-rmi/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.
-## ---------------------------------------------------------------------------
-
-appender.file.type = File
-appender.file.name = file
-appender.file.fileName = target/camel-rmi-test.log
-appender.file.layout.type = PatternLayout
-appender.file.layout.pattern = %d %-5p %c{1} - %m %n
-appender.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.file.ref = file
diff --git a/components/pom.xml b/components/pom.xml
index aef9251..785ae5a 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -264,7 +264,6 @@
         <module>camel-rest</module>
         <module>camel-rest-swagger</module>
         <module>camel-restlet</module>
-        <module>camel-rmi</module>
         <module>camel-rss</module>
         <module>camel-rxjava2</module>
         <module>camel-saga</module>
diff --git a/parent/pom.xml b/parent/pom.xml
index d644c4b..dbead5d 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1934,11 +1934,6 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
-        <artifactId>camel-rmi</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.camel</groupId>
         <artifactId>camel-rss</artifactId>
         <version>${project.version}</version>
       </dependency>
@@ -3403,11 +3398,6 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
-        <artifactId>camel-rmi-starter</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.camel</groupId>
         <artifactId>camel-rss-starter</artifactId>
         <version>${project.version}</version>
       </dependency>
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/pom.xml b/platforms/spring-boot/components-starter/camel-rmi-starter/pom.xml
deleted file mode 100644
index da7e132..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/pom.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?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.camel</groupId>
-    <artifactId>components-starter</artifactId>
-    <version>3.0.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>camel-rmi-starter</artifactId>
-  <packaging>jar</packaging>
-  <name>Spring-Boot Starter :: Camel :: RMI</name>
-  <description>Spring-Boot Starter for Camel RMI support</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter</artifactId>
-      <version>${spring-boot-version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-rmi</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <!--START OF GENERATED CODE-->
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-core-starter</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-spring-boot-starter</artifactId>
-    </dependency>
-    <!--END OF GENERATED CODE-->
-  </dependencies>
-</project>
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentAutoConfiguration.java b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentAutoConfiguration.java
deleted file mode 100644
index 175e759..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentAutoConfiguration.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * 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.camel.component.rmi.springboot;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.annotation.Generated;
-import org.apache.camel.CamelContext;
-import org.apache.camel.component.rmi.RmiComponent;
-import org.apache.camel.spi.ComponentCustomizer;
-import org.apache.camel.spi.HasId;
-import org.apache.camel.spring.boot.CamelAutoConfiguration;
-import org.apache.camel.spring.boot.ComponentConfigurationProperties;
-import org.apache.camel.spring.boot.util.CamelPropertiesHelper;
-import org.apache.camel.spring.boot.util.ConditionalOnCamelContextAndAutoConfigurationBeans;
-import org.apache.camel.spring.boot.util.GroupCondition;
-import org.apache.camel.spring.boot.util.HierarchicalPropertiesEvaluator;
-import org.apache.camel.support.IntrospectionSupport;
-import org.apache.camel.util.ObjectHelper;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.autoconfigure.AutoConfigureAfter;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Conditional;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Lazy;
-
-/**
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
-@Configuration
-@Conditional({ConditionalOnCamelContextAndAutoConfigurationBeans.class,
-        RmiComponentAutoConfiguration.GroupConditions.class})
-@AutoConfigureAfter(CamelAutoConfiguration.class)
-@EnableConfigurationProperties({ComponentConfigurationProperties.class,
-        RmiComponentConfiguration.class})
-public class RmiComponentAutoConfiguration {
-
-    private static final Logger LOGGER = LoggerFactory
-            .getLogger(RmiComponentAutoConfiguration.class);
-    @Autowired
-    private ApplicationContext applicationContext;
-    @Autowired
-    private CamelContext camelContext;
-    @Autowired
-    private RmiComponentConfiguration configuration;
-    @Autowired(required = false)
-    private List<ComponentCustomizer<RmiComponent>> customizers;
-
-    static class GroupConditions extends GroupCondition {
-        public GroupConditions() {
-            super("camel.component", "camel.component.rmi");
-        }
-    }
-
-    @Lazy
-    @Bean(name = "rmi-component")
-    @ConditionalOnMissingBean(RmiComponent.class)
-    public RmiComponent configureRmiComponent() throws Exception {
-        RmiComponent component = new RmiComponent();
-        component.setCamelContext(camelContext);
-        Map<String, Object> parameters = new HashMap<>();
-        IntrospectionSupport.getProperties(configuration, parameters, null,
-                false);
-        for (Map.Entry<String, Object> entry : parameters.entrySet()) {
-            Object value = entry.getValue();
-            Class<?> paramClass = value.getClass();
-            if (paramClass.getName().endsWith("NestedConfiguration")) {
-                Class nestedClass = null;
-                try {
-                    nestedClass = (Class) paramClass.getDeclaredField(
-                            "CAMEL_NESTED_CLASS").get(null);
-                    HashMap<String, Object> nestedParameters = new HashMap<>();
-                    IntrospectionSupport.getProperties(value, nestedParameters,
-                            null, false);
-                    Object nestedProperty = nestedClass.newInstance();
-                    CamelPropertiesHelper.setCamelProperties(camelContext,
-                            nestedProperty, nestedParameters, false);
-                    entry.setValue(nestedProperty);
-                } catch (NoSuchFieldException e) {
-                }
-            }
-        }
-        CamelPropertiesHelper.setCamelProperties(camelContext, component,
-                parameters, false);
-        if (ObjectHelper.isNotEmpty(customizers)) {
-            for (ComponentCustomizer<RmiComponent> customizer : customizers) {
-                boolean useCustomizer = (customizer instanceof HasId)
-                        ? HierarchicalPropertiesEvaluator.evaluate(
-                                applicationContext.getEnvironment(),
-                                "camel.component.customizer",
-                                "camel.component.rmi.customizer",
-                                ((HasId) customizer).getId())
-                        : HierarchicalPropertiesEvaluator.evaluate(
-                                applicationContext.getEnvironment(),
-                                "camel.component.customizer",
-                                "camel.component.rmi.customizer");
-                if (useCustomizer) {
-                    LOGGER.debug("Configure component {}, with customizer {}",
-                            component, customizer);
-                    customizer.customize(component);
-                }
-            }
-        }
-        return component;
-    }
-}
\ No newline at end of file
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentConfiguration.java
deleted file mode 100644
index dc0f8b0..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/java/org/apache/camel/component/rmi/springboot/RmiComponentConfiguration.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * 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.camel.component.rmi.springboot;
-
-import javax.annotation.Generated;
-import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-/**
- * The rmi component is for invoking Java RMI beans from Camel.
- * 
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.SpringBootAutoConfigurationMojo")
-@ConfigurationProperties(prefix = "camel.component.rmi")
-public class RmiComponentConfiguration
-        extends
-            ComponentConfigurationPropertiesCommon {
-
-    /**
-     * Whether to enable auto configuration of the rmi component. This is
-     * enabled by default.
-     */
-    private Boolean enabled;
-    /**
-     * Whether the component should resolve property placeholders on itself when
-     * starting. Only properties which are of String type can use property
-     * placeholders.
-     */
-    private Boolean resolvePropertyPlaceholders = true;
-
-    public Boolean getResolvePropertyPlaceholders() {
-        return resolvePropertyPlaceholders;
-    }
-
-    public void setResolvePropertyPlaceholders(
-            Boolean resolvePropertyPlaceholders) {
-        this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
-    }
-}
\ No newline at end of file
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/LICENSE.txt b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/LICENSE.txt
deleted file mode 100644
index 6b0b127..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/LICENSE.txt
+++ /dev/null
@@ -1,203 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed 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.
-
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/NOTICE.txt b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/NOTICE.txt
deleted file mode 100644
index 2e215bf..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/NOTICE.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-   =========================================================================
-   ==  NOTICE file corresponding to the section 4 d of                    ==
-   ==  the Apache License, Version 2.0,                                   ==
-   ==  in this case for the Apache Camel distribution.                    ==
-   =========================================================================
-
-   This product includes software developed by
-   The Apache Software Foundation (http://www.apache.org/).
-
-   Please read the different LICENSE files present in the licenses directory of
-   this distribution.
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
deleted file mode 100644
index 84341a9..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-  "properties": [
-    {
-      "defaultValue": true,
-      "name": "camel.component.rmi.enabled",
-      "description": "Enable rmi component",
-      "type": "java.lang.Boolean"
-    }
-  ]
-}
\ No newline at end of file
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.factories b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.factories
deleted file mode 100644
index ba35439..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.factories
+++ /dev/null
@@ -1,18 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.
-## ---------------------------------------------------------------------------
-org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
-org.apache.camel.component.rmi.springboot.RmiComponentAutoConfiguration
diff --git a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.provides b/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.provides
deleted file mode 100644
index 9f1d756..0000000
--- a/platforms/spring-boot/components-starter/camel-rmi-starter/src/main/resources/META-INF/spring.provides
+++ /dev/null
@@ -1,17 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.
-## ---------------------------------------------------------------------------
-provides: camel-rmi
diff --git a/platforms/spring-boot/components-starter/pom.xml b/platforms/spring-boot/components-starter/pom.xml
index ba6a841..4f934f7 100644
--- a/platforms/spring-boot/components-starter/pom.xml
+++ b/platforms/spring-boot/components-starter/pom.xml
@@ -304,7 +304,6 @@
     <module>camel-rest-swagger-starter</module>
     <module>camel-restlet-starter</module>
     <module>camel-ribbon-starter</module>
-    <module>camel-rmi-starter</module>
     <module>camel-rss-starter</module>
     <module>camel-rxjava2-starter</module>
     <module>camel-saga-starter</module>