Name server

Name server

Post by Mare » Thu, 23 Feb 2006 04:53:47


I'm comming back to the topic started some time ago.
I had to obtain remote reference by 'corbaloc' or 'corbaname'. It's
mandatory, I cannot use reference either stored in a file on a local file
system or via http. So I tried to find some name server that could be
managed from the source code of my application. It means that I needed some
name server which had public JAVA API with some start and stop methods.
I've been advised to use 'JacOrb' or
'', but they're
stand-alone servers.
I tried to use the source code of
I added to necessary properties:

com.sun.CORBA.POA.ORBServerId = 1
com.sun.CORBA.POA.ORBPersistentServerPort = 12567

When I tried to start that server on windows, on different available ports,
I always got this exception: <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname:; port: 900"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

Can anyone tell me what's the problem?
Maybe you can recommend me some other solution for obtaining remote
reference by 'corbaname' or 'corbaloc'.

Thanks in advance

Below is a full code of that name server:

* @(#) 1.12 03/12/19
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.

import org.omg.CosNaming.NamingContext;
* Class NameServer is a standalone application which
* implements a persistent and a transient name service.
* It uses the PersistentNameService and TransientNameService
* classes for the name service implementation.
* @version 1.1, 99/10/07
* @author Hemanth Puttaswamy
* @since JDK1.2

public class NameServer
private ORB orb;

private File dbDir; // name server database directory

private final static String dbName = "names.db";

public static void main(String args[])
NameServer ns = new NameServer(args);;

protected NameServer(String args[])
// create the ORB Object
java.util.Properties props = System.getProperties();
props.put( ORBConstants.SERVER_ID_PROPERTY, "1000" ) ;

props.put("com.sun.CORBA.POA.ORBServerId", "1");
props.put("com.sun.CORBA.POA.ORBPersistentServerPort", "12567");

orb = (ORB) org.omg.CORBA.ORB.init(args,props);

// set up the database directory
String dbDirName =
props.getProperty( ORBConstants.DB_DIR_PROPERTY ) +
props.getProperty("file.separator") + dbName +

dbDir = new File(dbDirName);
if (!dbDir.exists())

protected void run()
try {

// create the persistent name service
NameService ns = new Name

1. How to map long-named server to new short-named server name?

2. Issue reg changing the existing name server to a new name server

Hi All,
My organisation registered a domain name under the .in domain.
After that we found that new domian name was successfully registered
and it was hosted by the
ISP itself.
The issue here is that my organisation wants to host the domain name
themselves . For that there is some provision
in the ISP's website to change the name server record.

But it is asking only for the hostname of the new name server . There I
can give either the hostname or ip
address of the new name server.

I was just wondering if I provide only the ip address or hostname but not
both, then whether my domain name
will be resolved at the Internet.
What I understand is that by asking the ISP to change the name server
record to a new name server that will
be hosted by us, it will be like the ISP has delegated the authority of the
domain name to our organisation.
But for that , the ISP needs to add a glue record for our name server which
will consist of both name server and
its corresponding ip address.
But the ISP is asking for only one of them .

So , please clarify my doubt that if I provide either the hostname or ip
address , will my domain name will be resolved in internet.


3. really bizarre Deferred: Name server: host name lookup failure

4. Naming w/ CDR; was Repost: Naming Server crash on differently aligned systems

5. Sendmail Name server: host name lookup failure

6. name server or domain name

7. Name server names

8. Changing Computer Name /Server Name

9. stat=Deferred: Name server: XXXXXX relay: host name lookup failure

10. DNS name server named incorrectly FIX ?

11. [OT] Newsgroups Names (was: Name Servers and the Net?)

12. MX record for Exchange server 2003 and ISP/DNS name server

13. Name server queries coming to a mail server?

14. How to get the list of all the servers from name server ?

15. Windows 2000 Server DNS Name Servers help needed.