dcsimg
InvalidName error, when using different name for VisiBroker nameservice
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, June 22, 2002 02:50 AM

When I tried to use a different name other than " NameService " to Visibroker name-service, it's giving org.omg.CORBA.ORBPackage.InvalidName error. I did the following..  Started a naming server with a new name (say myNS)  I gave it's reference to the ORB as follows: org.omg.CORBA.Object rootObj = orb.resolve_initial_references("myNS"); I started the Server as follows: vbj -DSVCnameroot=myNS MyServer   But when I use the default name (i.e.NameService) it's working fine. Can u help me!! thanks.    More>>

When I tried to use a different name other than " NameService " to
Visibroker name-service, it's giving org.omg.CORBA.ORBPackage.InvalidName
error.



I did the following..


  1.  Started a naming server with a new name (say myNS) 

  2. I gave it's reference to the ORB as follows:

    org.omg.CORBA.Object rootObj = orb.resolve_initial_references("myNS");

  3. I started the Server as follows:

    vbj -DSVCnameroot=myNS MyServer  


But when I use the default name (i.e.NameService) it's working fine.



Can u help me!!

thanks.    <<Less

Re: InvalidName error, when using different name for VisiBroker nameservice

Posted By:   Mike_Friedrich  
Posted On:   Sunday, June 23, 2002 12:52 AM

Simply use "NameService", its the only name to get the NameService, the name is defined in the CORBA Standard.


And: "NameService" in resolve_initial_references is not the real service name of the name service.


Here are all values to be used by resolve_initial_references:


  • RootPOA
  • POACurrent
  • InterfaceRepository
  • NameService
  • TradingService
  • SecurityCurrent
  • TransactionCurrent
  • DynAnyFactory
  • ORBPolicyManager
  • PolicyCurrent
  • NotificationService
  • TypedNotificationService
  • CodecFactory
  • PICurrent


Which nameservice you get, depends on configurations. I guess you have registered any nameservice with the name "myNS"? Then you have to configure your ORB to use it as the default nameservice. But i don't know where in VisiBroker, read your configuration guides (or similiar docs). May be it could done through properties in java.


The CORBA Standard says (just read at http://cgi.omg.org/docs/formal/02-05-08.pdf):

You can use something like this in CORBA::ORB_init


-ORBInitRef NameService=IOR:00230021AB...

Read chapter 4.5.3 Configuring Initial Service References.


I hope this will help,

Regards, Mike

About | Sitemap | Contact