Monday, April 03, 2006

more thoughts on the client API

I've been thinking about how best to handle an applet server as the front end to the ArkDb server.

What if the client creates a sessionId? Then a (web) request can be handled with a single call:

processRequest(sessionId,requestDoc,uiName)

Note that if the client simply wants an initial display, the requestDoc can just be the empty string. And after the initial request for a user, the uiName should be the empty string.

We'll want a second method to close a session, though the server should also timeout idle clients. Another nice thing here is that a client server need only track the channelId for each user, using a single socket or RMI proxy for all users.

Now in cases where there is no need to maintain an open session, the sessionId can also be an empty string and the ArkDb server can simply close the session after servicing the call.

Bill

0 Comments:

Post a Comment

<< Home