Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 90813 invoked from network); 21 Oct 2008 19:25:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 19:25:23 -0000 Received: (qmail 86869 invoked by uid 500); 21 Oct 2008 19:25:23 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 86847 invoked by uid 500); 21 Oct 2008 19:25:23 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 86836 invoked by uid 99); 21 Oct 2008 19:25:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 12:25:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of weberjn@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 19:24:12 +0000 Received: by ug-out-1314.google.com with SMTP id k40so1114119ugc.27 for ; Tue, 21 Oct 2008 12:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=l1xkdqM+wLgLYc2BC86WJh29m6la0FLSoJMmca5memk=; b=LYz/weGmdZ4J+paYnANY9pX2VyKOQo8NAYMXBzWcF3Adwlye0xj+QoHd/fBQgbVOar qhQCVky3wjGMA5GxgJ+ziV72PeY6eDa+kL4s+s//hOYWg6zHKgLOMQvo/wbO/8tQIdUb HToYFAUq/2QWH+jFkD5pZWAzU668kk8Gc1fcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a4ECFjbFuZ5L477yDRs20ossXvcnVvr+dw7SDrkRcZ6PqQx8zbgCUVVvuphqqTlcNf hJQBl31b5pC/1VVYXmg4SdvqU1uzNAWI1b156zBs3iX5tGzNGSrMXlAHOy759U88FfXJ sQxjdeLqVqVciC1mVKDHwiOUpxKw0Wsk52e3Y= Received: by 10.67.115.2 with SMTP id s2mr2932054ugm.49.1224617089513; Tue, 21 Oct 2008 12:24:49 -0700 (PDT) Received: by 10.67.40.16 with HTTP; Tue, 21 Oct 2008 12:24:49 -0700 (PDT) Message-ID: <1964cfb60810211224w8eb2a3fj42773a26a401d18d@mail.gmail.com> Date: Tue, 21 Oct 2008 21:24:49 +0200 From: "Juergen Weber" To: user@geronimo.apache.org Subject: Re: Accessing corba from geronimo In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org No solution, but hints: - try to use an IOR first (object_to_string() and friends) - try to use JacORB from within Geronimo (but then JacORB threads are not under control of Geronimo), this should work with Geronimo, too: http://developers.sun.com/appserver/reference/techart/orb.html On Tue, Oct 21, 2008 at 7:23 PM, Fredrik Jonson wrote: > Hi, > > I'm trying to port a non-jee app to a EAR and get it running in > Geronimo (2.1.3). It has been a lot of fun, although I'm very much > a JEE-newbie, so it's a lot to grasp all at once... ;) > > Now, I have one component that needs to make a remote corba > request to a non-jee corba service. In my legacy code, I did > it like this: > > Properties properties = new Properties(); > properties.put("org.omg.CORBA.ORBInitRef.NameService", > "corbaloc::10.11.12.13:4003/NameService"); > orb = ORB.init(new String[0], properties); > org.omg.CORBA.Object ns = > orb.resolve_initial_references("NameService"); > NamingContextExt namingContext = > NamingContextExtHelper.narrow(ns); > org.omg.CORBA.Object obj = namingContext.resolve_str( > "org/example/FooService"); > communicator = CommunicationHelper.narrow(obj); > // use the communicator here... > > When I try to use the same code in a MDB in Geronimo I get a > exception with the following stacktrace: > > Caused by: org.omg.CORBA.ORBPackage.InvalidName: > IDL:omg.org/CORBA/ORB/InvalidName:1.0 > at org.apache.yoko.orb.OB.InitialServiceManager > .resolveInitialReferences(InitialServiceManager.java:191) > at org.apache.yoko.orb.OBCORBA.ORB_impl > .resolve_initial_references(ORB_impl.java:1090) > at org.example.MyClient.initiate(MyClient.java:249) > > I've tried to find examples of how to call legacy (non-ejb) corba > services from a jee environment, but sofar I've come up short. I'd > be greatful for some hints on how to approach this. > > -- > Fredrik Jonson > >