~ubuntu-branches/ubuntu/precise/tomcat7/precise-updates

« back to all changes in this revision

Viewing changes to java/org/apache/catalina/ha/session/JvmRouteBinderValve.java

  • Committer: Bazaar Package Importer
  • Author(s): tony mancill, Miguel Landaeta, tony mancill
  • Date: 2011-06-23 20:26:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110623202629-w1v0jejj19swux10
Tags: 7.0.16-1
[ Miguel Landaeta ]
* New upstream release.
* Add missing deps and symlinks for commons-pool ands commons-dbcp jars.

[ tony mancill ]
* Add logrotate file for catalina.out.
* Add build-arch target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
 * requested sessions are migrated.
88
88
 * 
89
89
 * @author Peter Rossbach
90
 
 * @version $Id: JvmRouteBinderValve.java 1094069 2011-04-16 22:25:28Z markt $
 
90
 * @version $Id: JvmRouteBinderValve.java 1133177 2011-06-07 22:14:52Z markt $
91
91
 */
92
92
public class JvmRouteBinderValve extends ValveBase implements ClusterValve {
93
93
 
102
102
 
103
103
    //------------------------------------------------------ Constructor
104
104
    public JvmRouteBinderValve() {
105
 
        super(false);
 
105
        super(true);
106
106
    }
107
107
 
108
108
    /*--Instance Variables--------------------------------------*/
199
199
    public void invoke(Request request, Response response) throws IOException,
200
200
            ServletException {
201
201
 
202
 
         if (getEnabled() 
203
 
             && request.getContext() != null
204
 
             && request.getContext().getDistributable() ) {
 
202
         if (getEnabled() &&
 
203
                 request.getContext() != null &&
 
204
                 request.getContext().getDistributable() &&
 
205
                 !request.isAsyncDispatching()) {
205
206
             // valve cluster can access manager - other cluster handle turnover 
206
207
             // at host level - hopefully!
207
208
             Manager manager = request.getContext().getManager();