Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


oracle.jbo.http
Class SharedSessionCookieFactory

java.lang.Object
  |
  +--oracle.jbo.http.SharedSessionCookieFactory
All Implemented Interfaces:
SessionCookieFactory

public class SharedSessionCookieFactory
extends java.lang.Object
implements SessionCookieFactory

Factory for shared session cookies. By default, the factory will return a singleton shared session cookie instance for shared access to a "semi-static" application module. The factory may also be configured with a pool of shared session cookies. This may be desirable to reduce lock contention amongst sessions. When a pool of shared session cookies is used the pool will return shared session cookies in a round-robin fashion.

Please see SharedSessionCookieImpl for more information regarding the shared session cookie implementation.


Constructor Summary
SharedSessionCookieFactory()
           
SharedSessionCookieFactory(int poolSize)
           

 

Method Summary
 SessionCookie createSessionCookie(java.lang.String applicationId, java.lang.String sessionId, ApplicationPool pool, java.util.Properties properties)
          Creates a SessionCookie instance.
 int getPoolSize()
           
 java.lang.Class getSessionCookieClass()
           
 void setPoolSize(int poolSize)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SharedSessionCookieFactory

public SharedSessionCookieFactory(int poolSize)

SharedSessionCookieFactory

public SharedSessionCookieFactory()
Method Detail

getPoolSize

public int getPoolSize()

setPoolSize

public void setPoolSize(int poolSize)

createSessionCookie

public SessionCookie createSessionCookie(java.lang.String applicationId,
                                         java.lang.String sessionId,
ApplicationPool pool,
                                         java.util.Properties properties)
Description copied from interface: SessionCookieFactory
Creates a SessionCookie instance.
Specified by:
createSessionCookie in interface SessionCookieFactory
Parameters:
applicationId - an identifier which may be used to uniquely identify this cookie within the context of a session
sessionId - an option identifier which may be used to uniquely identify this cookie across sessions.
pool - the applicationPool instance which will be used to acquire ApplicationModule instances for this SessionCookie.
properties - an optional properties object which may be used to pass additional creation properties to the SessionCookieFactory.

getSessionCookieClass

public java.lang.Class getSessionCookieClass()

Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


 

Copyright © 1997, 2003, Oracle. All rights reserved.