java - Where to store the session object in a Standalone application? -


I have a session object that does not apply java.lang.Serializable (this is a legacy application, and I no longer have Can and change the code)

Is there any way where I place a session object somewhere else where a standallon application?

There is an idea that use RMI . There is no better way to achieve this.

EDIT: Legacy applications have APIs that give me the session object. On session object, I am implementing methods. Getting session object is really an expensive operation. Therefore, I would like to store it for any subsequent actions until the session is valid.

thanks :)

Suppose you want to define your position You can query your session object, and by looking at that situation, you can create a new session object which is equivalent. After this you need a supporting class, in which each installation session is attached to the object and which is serial. You write the sequence of auxiliary class to store the position of the session, and it creates the session when you create a new one by serialization.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -