Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17F941A04 for ; Fri, 22 Apr 2011 08:42:55 +0000 (UTC) Received: (qmail 95181 invoked by uid 500); 22 Apr 2011 08:42:54 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 95152 invoked by uid 500); 22 Apr 2011 08:42:54 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 95143 invoked by uid 99); 22 Apr 2011 08:42:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2011 08:42:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-pz0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Apr 2011 08:42:50 +0000 Received: by pzk36 with SMTP id 36so302722pzk.32 for ; Fri, 22 Apr 2011 01:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=KPbEiZjs0AvpM5VtQNZBcaN2Pr8de+G6kbfLE6cbDPQ=; b=Cj4wsPoqWoBslQMu32+au5lLcNXz3kh1lDahO9NUDzsbfjEwMx+nz8cHjNJH0LYqFV ZZ7bjUlgiHmEmudnglIe4jRxyoOIUguAsc7WRdqBmcsyCBthz44z8YKyy0WgchMtXsx2 vxP5dEOzpc7GEillhBh5IXTFhXJuCKopp0HTg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=yBRpoSNssAxe630qvf8SW8Fp0GqLy1iHUwVN5zrwMcqcwsCEwABzaeu5df8/sfbisa TlE3RXzTyaANAc3sYmiHKPExGeEg3706Srkew35OGKpAfIhkRTe5uVJO0xwtBJLKVMTR diZqoTOroGvd5AywAIrxvp5fXTUBuYgSSmZBE= Received: by 10.68.50.66 with SMTP id a2mr1364140pbo.490.1303461750062; Fri, 22 Apr 2011 01:42:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.47.65 with HTTP; Fri, 22 Apr 2011 01:42:10 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Fri, 22 Apr 2011 10:42:10 +0200 Message-ID: Subject: Re: use spring remoting rmi To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Apr 22, 2011 at 10:15 AM, Filippo Balicchia wrote: > Hello, > > after adding spring dependency It works. > Which spring dependency did you need to add? > I need =A0to understand why the problem is presented at run time and not = at > compile time. > Well you can also get runtime issues such as ClassNotFoundException etc. So this is a similar situation you have. > Thanks for help > > --Filippo > > 2011/4/16 Filippo Balicchia > >> Sorry but I did not understand. >> I have an external server which exposes a service with Spring remoting w= ith >> RMI. >> What I'd like to do is connect to this server without having to change t= he >> java.security.policy. >> >> I tried this in different ways but I always got the 'error >> vocationWrapper_Stub (no security manager: RMI class loader disabled). N= ow 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 >> >>> Hi >>> >>> Can you try without that spring export. And do the JMX with the Java AP= I. >>> >>> >>> On Sat, Apr 16, 2011 at 10:41 AM, Filippo Balicchia >>> 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 serve= r >>> 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: >>> > =A0 =A0 =A0 =A0java.lang.ClassNotFoundException: >>> > org.springframework.remoting.rmi.RmiIn >>> > vocationWrapper_Stub (no security manager: RMI class loader disabled) >>> > =A0 =A0 =A0 =A0at >>> > org.springframework.beans.factory.support.AbstractAutowireCapableBean >>> > >>> > Here the configuration: >>> > >> > class=3D"org.springframework.remoting.rmi.RmiProxyFactoryBean"> >>> > >> value=3D"rmi://localhost:1234/helloServiceBean" /> >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > =A0public class FileToJMSRoute extends RouteBuilder { >>> > =A0 =A0@Override >>> > =A0 =A0public void configure() { >>> > >>> > >>> =A0from("timer://foo?fixedRate=3Dtrue&period=3D20000").beanRef("helloSe= rviceBean"); >>> > =A0 =A0} >>> > } >>> > >>> > >>> > >>> > Do you suggest to write my own component ? >>> > >>> > Could please address me. From configuration point of view all is ok b= ut >>> > where is my mistake ? >>> > >>> > Cheers >>> > >>> > --Filippo >>> > >>> >>> >>> >>> -- >>> Claus Ibsen >>> ----------------- >>> FuseSource >>> Email: cibsen@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/ >>> >> >> > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@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/