Hi You can check out the unit test source code http://svn.apache.org/viewvc/camel/trunk/components/camel-rmi/
I guess the rmi wiki page could use an update. http://camel.apache.org/rmi.html If you get it working and feel like it, we would love feedback/countributions on this RMI component http://camel.apache.org/contributing.html Post back the working solution/feedback and I can help update the wiki page. On Tue, Feb 17, 2009 at 11:33 AM, Nivetha Shri <nivis...@gmail.com> wrote: > Hi All > Can someone tell me how to use RMI component in Camel? > > It is given tat we can hit the rmi service as follows.. > from(inputEndPoint).to("rmi://localhost:1099/foo") > > I have bound the service as follows > > MyImpl obj = new MyImpl (); Naming.rebind("//localhost:1099/foo", obj); > > Usually, in a normal client we will invoke the rmi service as follows > Hello obj = (Hello)Naming.lookup("//localhost:1099/foo"); > message = obj.myMethod(); > > i.e., we would get the object from the bindings and then invoke the methods > that we do need. > > How can we achieve the same from camel? Any pointers to articles on this? > > Any help would be of great use. > > Thanks and Regards > Nivi > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/