uCosminexus Application Server, Expansion Guide
The functionality for defining refer-only requests in HTTP session sets the URL patterns of the requests that are only to be referenced and not to be updated (refer-only requests), and thus deters the serialization of HTTP sessions or access to the database or EADs server, for requests of those URL patterns.
You can use this functionality when you disable the database session failover functionality and in the case of the EADs session failover functionality.
The following figure shows the flow of processing when you define refer-only requests for using the EADs session failover functionality. In the case of the database session failover functionality, the global session information storage destination in the figure changes to the session information storage table in the database.
Figure 5-14 Processing of refer-only requests (the EADs session failover functionality)
With processing of refer-only requests, a response is returned after executing a Web application that refers to the session. Processing of the global session information updation that is executed in the case of the requests that update the HTTP session, indicated by the dotted line arrows in the figure is not executed.
Note that you can use the session failover inhibition functionality in the case of the requests, which not only update but also not refer to the HTTP session. The requests corresponding to both the refer-only requests and the requests targeted for session failover inhibition functionality, processing are executed as the requests targeted for the session failover inhibitionion functionality. For details on the session failover inhibitionion functionality, see 5.6.1 Inhibiting the session failover functionality.
You can set the functionality of defining refer-only requests of an HTTP session in the J2EE server unit or Web application unit.
For details on the settings in the J2EE server unit in the case of the database session failover functionality, see 6.6 J2EE server settings.
For details on the settings in the J2EE server unit in the case of the EADs session failover functionality, see 7.5 J2EE server settings and for details on settings in the Web application unit, see 7.4 Definitions in cosminexus.xml.
This subsection describes the precautions to be taken when defining refer-only requests of an HTTP session.
java.util.Hashtable table = (java.util.Hashtable)session.getAttribute("attr1");
table.put("key1", "value1");
|
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.