By inserting the node checks in the following code I found that the connectDatabase() calls do not work.
I could read from either node in my trial system if I opened the session with it but I could not access either node if I connected it to a session.
**************************************************************************************** CODE **********************************************************************************
// open session then connect all the other shards to the same session
session = new TransSession(dbNodes[0].name);this.dbNodeCheck(session, 0, fop);for (it = 1; it < dbNodes.length; it++) {session.connectDatabase(dbNodes[it].name);this.dbNodeCheck(session, it, fop);// }
// now create logical database from main and connected databases
); }
***********************************************************************************END CODE ***************************************************************************************
Does this give any clue as to why this shouldn't work. As I have written there's only one session being used. Are any of these calls asynchronous under the JVI hood?
session.newLogicalDatabase(lName); for ( it = 0; it < dbNodes.length; it++) {session.addToLogicalDatabase(lName, dbNodes[it].name