9 Mar
2010
9 Mar
'10
5:52 p.m.
Hi, In a client-server interaction with BaseX database, I see the ClientSession object is not associated with a database, in the usual manner(Usually, a session is established with a particular database at session creation time). Please let me know if my understanding is right: When we I do the following: *Line 1*: ClientSession session = new ClientSession("localhost", 1984, "admin", "admin"); *Line 2*: session.execute("OPEN databaseA"); *Line 3*: session.execute("XQUERY <some xquery>"); *Does "Line 2" bind the session with databaseA?(*So, I am assured that Line 3 executes on databaseA?) Thanks and regards, Swaminathan Sahiram