| Summary | This article exmplains how to set fixed port for Orbix 6.3 naming service, workaround for itnaming's problem. | 
|---|---|
| Article Number | -Number- | 
| Environment | Orbix 6.3 All Supported Operating Systems | 
| Question/Problem Description | How to set fixed port for Orbix 6.3 naming service? | 
| Clarifying Information | |
| Error Message | |
| Defect/Enhancement Number | |
| Cause | |
| Resolution | 1. Edit DOMAIN.cfg file Set plugins:naming:direct_persistence to TRUE and set plugins:naming:iiop:port to required port number. 2. Generate IORs by itnaming's prepare command Generate IORs for Naming Service by prepare command as: itnaming -ORBname iona_services.naming.HOST -ORBdoman_name DOMAIN -ORBconfig_domains_dir domain_dir prepare This generates two IORs, NameService and IT_SingleNameService, the latter is need to stop itnaming service. You may write the ior to specified file as : itnaming ... prepare -publish_to_file=<file name> 3. An issue of itnaming' prepare command However, the generated NameService IOR does not contains the port numbers you have set in DOMAIN.cfg but random numbers so you have to edit it to set the port number properly. | 
| Workaround | For this purpose, you may use iordump utility to determine Endian and place to set port numbers as: $ iordump ns.ior >> 0 [01] Byte order of IOR: (1) Little Endian ... >> 80 [e0][a6] Port: 42720 ... >> 142 [df][a6] SSL port: 42719 ... >> 180 [df][a6] ... SSL port: 42719 In above example, you have to set plugins:naming:iiop:port's number to offset 80, plugins:naming:iiop_tls:port's number to both offset 142 and 180 in Little Endian hexadecial notation. Set the modified IOR to initial_references:NameService:reference in DOMAIN.cfg. For IT_SingleNameService, it refrects the port number set in plugins:naming:iiop:port so no need to modify, just set the IOR to IT_NameServiceReplicas = ["iona_services.naming.HOST=IOR:..."]; | 
| Notes | Sample scripts for start_DOMAIN_services, and stop_DOMAIN_services: itnaming -ORBname iona_services.naming.HOST -ORBdomain_name DOMAIN -ORBconfig_domains_dir domains_dir run itadmin -ORBdomain_name DOMAIN -ORBconfig_domains_dir domains_dir ns stop iona_services.naming.HOST | 
| Attachment | -Attachment- | 
| Created date: | 24 May 2017 | 
| Last Modified: | 24 May 2017 | 
| Last Published: | 24 May 2017 | 
| First Published date: | 24 May 2017 | 
#KnowledgeDocs
#Orbix

