Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 74687 invoked from network); 22 Oct 2008 12:54:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 12:54:25 -0000 Received: (qmail 6937 invoked by uid 500); 22 Oct 2008 12:54:26 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 6903 invoked by uid 500); 22 Oct 2008 12:54:26 -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 6891 invoked by uid 99); 22 Oct 2008 12:54:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 05:54:26 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjgu-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 12:53:16 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KsdDk-0002r4-Lj for user@geronimo.apache.org; Wed, 22 Oct 2008 12:53:52 +0000 Received: from h-168-145.a192.priv.bahnhof.se ([85.24.168.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Oct 2008 12:53:52 +0000 Received: from fredrik by h-168-145.a192.priv.bahnhof.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Oct 2008 12:53:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@geronimo.apache.org From: Fredrik Jonson Subject: Re: Accessing corba from geronimo [SOLVED] Date: Wed, 22 Oct 2008 12:53:45 +0000 (UTC) Lines: 34 Message-ID: References: <1964cfb60810211224w8eb2a3fj42773a26a401d18d@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h-168-145.a192.priv.bahnhof.se User-Agent: slrn/0.9.9 (Linux) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Juergen Weber wrote: > Try to use an IOR first(object_to_string() and friends) Thank you! I now have working code! I used the legacy code - that uses the default sun ORB - to retrieve the IOR of the object I needed. After that it was as simple as replacing: > > 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"); Whith these two lines: String ior = "IOR:000000000000003f4..." org.omg.CORBA.Object obj = orb.string_to_object(ior); And now everything works in Geronimo too... Yay! I must admit that it's still a bit magic to me, I mean why that change made a difference in the first place. A bit of browsing on the web suggests that using IOR is a more ORB-independent way of getting hold of a service, but I'm not sure that's the whole story? Anyway, thanks again Juergen! -- Fredrik Jonson