I was able to get the working as follows:

    <camel:camelContext id="camelContext">
        <camel:jmxAgent id="jmxAgent" disabled="false" 
createConnector="false">
    </camel:camelContext>

    <bean id="rmiRegistry"
class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
        <property name="port" value="8091"/>
    </bean>

    <bean id="jmxConnector"
class="org.springframework.jmx.support.ConnectorServerFactoryBean"
        depends-on="rmiRegistry">
        <property name="objectName" value="connector:name=rmi"/>
        <property name="serviceUrl" 
               
value="service:jmx:rmi://localhost:8090/jndi/rmi://localhost:8091/myapp"/>
        <property name="environment">
            <map>
                <!-- JMX password authentication -->
                <entry key="jmx.remote.x.password.file"
value="C:/Temp/jmx/jmxremote.password"/>
                <entry key="jmx.remote.x.access.file"
value="C:/Temp/jmx/jmxremote.access"/>

                <!-- JMX SSL authentication -->
                <entry key="jmx.remote.rmi.client.socket.factory">
                    <bean class="javax.rmi.ssl.SslRMIClientSocketFactory"/>
                </entry>
                <entry key="jmx.remote.rmi.server.socket.factory">
                    <bean class="javax.rmi.ssl.SslRMIServerSocketFactory"/>
                </entry>
            </map>
        </property>
    </bean>
-- 
View this message in context: 
http://old.nabble.com/Apache-camelContext-jmxAgent-for-SSL-tp28332944p28760951.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to