I try to use the session context as following
SSLContext context = SSLContext.getInstance("TLSv1");
KeyManager keyManagers = kmf.getKeyManagers();
SSLSessionContext scontext = context.getServerSessionContext();
context.init(keyManagers, null, null);
but i don't see it influence the ssl socket connections to my server! The SSLSession is not store in SSLSessionContext!
Maybe i don't use it rightly. Can u tell the the right way to use it! thanks!
As I said above, you don't have to use it at all. It happens automatically.
NB the SSL session timeout you are setting of 10 seconds is absurd: an hour or so would be more like it. And why the limit of 100 sessions? I would have a good look at the default values before playing around with them. FYI the defaults in JDK 1.6 are zero=infinite cache size and a timeout of 24 hours.