Steps to get CORBA API working in 21.2.8+ for GetDomainID in a Fault Tolerant Environment
search cancel

Steps to get CORBA API working in 21.2.8+ for GetDomainID in a Fault Tolerant Environment

book

Article ID: 242732

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

We are using CORBA API in a Fault Tolerant SpectroSERVER Enviroment and have noticed that the steps to get this working in 21.2.8 are different then 10.4.2.2.  Can you please provide the complete steps that are needed to communicate with both Primary and Secondary SpectroSERVERs when using CORBA API from another SpectroSERVER?

Environment

Release : 21.2.8 and above

Component : SPCAPP - Spectrum Applications

Cause

With the added parameter -DORBpropStorage=$SPECROOT/.jcorbrc, the Java Client will use the parameters from the $SPECROOT/.jcorbarc otherwise it will use the system environment variables and settings.

Resolution

1) Have Java RunTime Up and Running (Needed for Classpath to pick the right JARs)

2) Set VBROOT. 

Command  in linux:::: export VBROOT="/customclient" .

/customclient is the directory where we have 

a) .jcorbrc 

b) GetDomainID.java

c) custom/VBNS folder hierarchy(refer next point)

3)Under /customclient I created a directory custom. Then copied from "/usr/Spectrum/custom/VBNS" to VBNS directory here.

This is to ensure all the latest certs are present on machines which have Custom Java clients.

4) Make sure the host which has a custom java client, its hostname is added in .hostrc of SS.

5) Pick IOR from the SS machine and place it in the custom/VBNS folder(mentioned above) namingservice.ior file.

On SS machine, ior is present in custom/VBNS/namingservice.xml. Pick IOR from there and place in /customclient/custom/VBNS/namingservice.ior

Example:

[[email protected] VBNS]# pwd
/customclient/custom/VBNS
[[email protected] VBNS]# cat namingservice.ior
IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000000000001000000000000015c0001020000000010616e61736130362d72683736766d310036b600000000002900504d4300000004000000182f434f4e544558545f504f414e616d655365727669636500000000013200000000000005564953030000000500070801ff00000000000000000000080000000056495300000000010000001800000000000100010000000105010001000101090000000000000021000000b4000100000000000200000000000000220000000000000000000000000000000004000000000000015642210100000007426f726c616e6400000000010000000806066781020101010000000f00020000000000240000002200000066000200000000000100000010616e61736130362d72683736766d310036c0000000000000000000000000000004000000000000015642210100000007426f726c616e6400000000010000000806066781020101010000000f000000140000000800000066000236c0

5) sudo spectrum (user on my SS)

$SPECROOT/Java/bin/java -DORBpropStorage=$SPECROOT/.jcorbrc -cp $CLASSPATH GetDomainID  <hostname_of_SS>

Additional Information

Example of working CLASSPATH

 

CLASSPATH=".:$SPECROOT/lib/global100.jar:$SPECROOT/lib/ssorb100.jar:$SPECROOT/lib/ssorbutil100.jar:$SPECROOT/lib/vbhelper100.jar:$SPECROOT/lib/vbjorb.jar:$SPECROOT/lib/vbsec.jar:$SPECROOT/lib/util100.jar:$SPECROOT/lib/utilnet100.jar:$SPECROOT/lib/utilsrv100.jar:$SPECROOT/lib/lm.jar:$SPECROOT/lib/cryptojFIPS.jar:$SPECROOT/lib/sanct6.jar:$SPECROOT/lib/sanctuary.jar:$SPECROOT/lib/utilapp100.jar:/appl/smile/spectrum/lib/jdom-2.0.6.1.jar"

 

Without specifying the parameter "-DORBpropStorage=$SPECROOT/.jcorbrc" then the GetDomainID will only connect to the Primary SS and not the Secondary SS from a server that has Spectrum installed on it.