Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Java

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-04-2009, 01:46 AM
Shaitan00 Shaitan00 is offline
Registered User
 
Join Date: Feb 2005
Posts: 22
Question How to extract the server Host/IP from the CORBA IOR & NamingContextExt? [Java]

I've got a Client who needs to send a UDP packet to a server and the only reference he has to the Server is through the CORBA naming service (IOR). I know the IOR has the Server Information embedded but is there an easy way for me to extract it?

This is the code I have so far:
Code:
   Object objRef = orb.resolve_initial_references("NameService");
   NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
   Object o = ncRef.resolve_str(Name);
After this Object o contains the IOR (if I do o.toString() it sure looks like a valid IOR), so from this what can I do to get the corresponding Servers IP/PORT so I can send it a UDP packet?

I know this sounds odd - why not just invoke the remote method, well this is for a school project and the professor recommended simply storing another table with all the sever information - but I am trying to be creative and since I was reading about the IOR I thought maybe I could do something with it ...

Any help would be much appreciated.
Thanks,
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
marshalling problem: how to pass an Excel.Range to a COM server? skynet news Enterprise 0 06-03-2002 11:27 AM
need help to extract data from exchange server logs Bryan Yates Enterprise 0 10-10-2000 11:43 AM
Remove exchange from a site andriano Enterprise 1 10-02-2000 04:54 PM
Server 2 Server http calls....Update Paul Web 7 09-15-2000 09:44 AM
SQL server administrative knowledge Becky Database 1 07-11-2000 04:27 PM


All times are GMT -4. The time now is 11:02 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.