On Fri, Dec. 4 1998 Marcel Ruff wrote:

> 1)
> I tried running our CORBA-VisiBroker stuff on Linux,
> it compiles well, but my clients and servers can't find
> the Naming Service running on a AIX box (with a running
> osagent/gatekeeper)
> How does this URL-naming look like ???
> The same code runs well if invoked on AIX.
> 

If you run an osagent on your aix box, and it is on the same ip subnet 
as your linux machine, it should work fine, we do this with Solaris 
all the time.  However, if your linux machine cannot be udp-bcasted
to from the aix box, you may have to override the ORBAgentAddr property
and point it to the IP address of the AIX box where the osagent is
running to be able to bind to the object reference of the naming service.

e.g.:

      // hardcode the osagent
      Properties props = new Properties();
      props.put("ORBagentAddr", "199.82.126.2");

      // init the orb
      ORB orb = ORB.init(args, props);
      System.out.println("Orb initted.");

Alternatively, you could also get the object reference of the naming 
service instance in IOR: form and bind 

e.g.:

      // bind to a Snafu object
      Snafu snafuTester = SnafuHelper.narrow( orb.string_to_object(iorString));

where iorstring is the object reference of the Naming Service impl obtained
by calling orb.object_to_string() on the impl in question.

Hope that helps, I have been after our Inprise contacts to port the osagent and
osfind to java, since we can do udp bcasts in Java now, but so far they have
been ignoring me...

Cheers.
-- 
Pat O'Neil 
email: [EMAIL PROTECTED]  

"Linux, where you want to BE, when Windows(tm) tells you where to GO!"

Reply via email to