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/