Sorry but I did not understand. I have an external server which exposes a service with Spring remoting with RMI. What I'd like to do is connect to this server without having to change the java.security.policy.
I tried this in different ways but I always got the 'error vocationWrapper_Stub (no security manager: RMI class loader disabled). Now I would understand if I am with you that something wrong or do I look for other ways. The problem correct me if I'm wrong that the camel is not possible to instantiate a spring remoting rmi client without changing the java.security.policy I have not been able Thanks a lot for 's help 2011/4/16 Claus Ibsen <claus.ib...@gmail.com> > Hi > > Can you try without that spring export. And do the JMX with the Java API. > > > On Sat, Apr 16, 2011 at 10:41 AM, Filippo Balicchia > <fbalicc...@gmail.com> wrote: > > Hello, I need to call the class RmiProxyFactoryBean through a remote > > service. > > For reference I took the example in the book camel in action CAP2. > > > > My bean need to be an spring remoting rmi client. > > > > In the capter 14 suggest to use camel proxy but in this case my server is > > exposed by RmiServiceExporter > > > > When i try to connect to my server it thrown > > > > of RMI stub failed; nested exception is java.rmi.UnmarshalException: > error > > unmar > > shalling return; nested exception is: > > java.lang.ClassNotFoundException: > > org.springframework.remoting.rmi.RmiIn > > vocationWrapper_Stub (no security manager: RMI class loader disabled) > > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBean > > > > Here the configuration: > > <bean id="helloServiceBean" > > class="org.springframework.remoting.rmi.RmiProxyFactoryBean"> > > <property name="serviceUrl" value="rmi://localhost:1234/helloServiceBean" > /> > > <property name="serviceInterface" value="camelinaction.HelloService" /> > > </bean> > > > > > > <bean id="fileToJMSRoute" class="camelinaction.FileToJMSRoute" /> > > > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > > <!--route> <from uri="file:src/data?noop=true"/> <process > > ref="downloadLogger"/> > > <to uri="jms:incomingOrders"/> </route --> > > <routeBuilder ref="fileToJMSRoute" /> > > </camelContext> > > public class FileToJMSRoute extends RouteBuilder { > > @Override > > public void configure() { > > > > > from("timer://foo?fixedRate=true&period=20000").beanRef("helloServiceBean"); > > } > > } > > > > > > > > Do you suggest to write my own component ? > > > > Could please address me. From configuration point of view all is ok but > > where is my mistake ? > > > > Cheers > > > > --Filippo > > > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > CamelOne 2011: http://fusesource.com/camelone2011/ > Twitter: davsclaus > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ >