Hello folks,
I have a question regarding the Spectrum CORBA API and a fail-over scenario.
If I have a fail-over scenario with a primary and a secondary server
and the primary Server stops working (including the LS) I cant get a connection
to the secondary Spectrum Server with my client any more.
If the LS on the primary server runs, this works well and I can see that it is
on fail-over.
Here is the example code:
import com.aprisma.util.corba.CORBAHelper;
import com.aprisma.spectrum.core.idl.CsCModelDomain;
public class TestCorbaAPI {
public static void main(String[] args) throws Throwable {
CORBAHelper helper = CORBAHelper.getHelperImpl();
helper.init(null,null);
CsCModelDomain modelDomain = (CsCModelDomain)
helper.getObjectImplementation(CsCModelDomain.class, args[0]);
System.out.println("'" + args[0] + "' : " +
modelDomain.isPrimary());
if (args.length > 1) {
modelDomain = (CsCModelDomain)
helper.getObjectImplementation(CsCModelDomain.class, args[1]);
System.out.println("'" + args[1] + "' : " +
modelDomain.isPrimary());
}
}
}
I thought there must be a possibility to tell the Client which location server
to use, but I haven't found any option for this.
Has anyone a solution for this?
best regards,
Mike Joost
EWE TEL GmbH
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]