Java Session Like Object

Posted by scriptmonster on Stack Overflow See other posts from Stack Overflow or by scriptmonster
Published on 2010-03-31T16:41:54Z Indexed on 2010/03/31 16:43 UTC
Read the original article Hit count: 270

Filed under:
|

I have been developing a project and in this project i have designed my code to do the same job after a specified time interval continuously. The job that wanted to be done has a lot of distinct cycles. The interval is small to execute them normally thus i used threads. Until that point everything is clear for me.

To decrease the process and information transaction i wanted to put an session like object that holds the given data and provide it to any thread at anytime. With this object i plan to not query the same configuration information from database at everytime but if it exists on the session take it else query and store on session.

I'm not sure how to implement this structure.

Regards,

© Stack Overflow or respective owner

Related posts about java

Related posts about session