@ -216,9 +216,15 @@ public abstract class AbstractTyrusRequestUpgradeStrategy extends AbstractStanda
Object sessionListener = accessor . getPropertyValue ( "sessionListener" ) ;
Object sessionListener = accessor . getPropertyValue ( "sessionListener" ) ;
Object clusterContext = accessor . getPropertyValue ( "clusterContext" ) ;
Object clusterContext = accessor . getPropertyValue ( "clusterContext" ) ;
try {
try {
if ( constructor . getParameterCount ( ) = = 9 ) {
return constructor . newInstance ( registration . getEndpoint ( ) , registration , provider , container ,
return constructor . newInstance ( registration . getEndpoint ( ) , registration , provider , container ,
"/" , registration . getConfigurator ( ) , sessionListener , clusterContext , null ) ;
"/" , registration . getConfigurator ( ) , sessionListener , clusterContext , null ) ;
}
}
else {
return constructor . newInstance ( registration . getEndpoint ( ) , registration , provider , container ,
"/" , registration . getConfigurator ( ) , sessionListener , clusterContext , null , Boolean . TRUE ) ;
}
}
catch ( Exception ex ) {
catch ( Exception ex ) {
throw new HandshakeFailureException ( "Failed to register " + registration , ex ) ;
throw new HandshakeFailureException ( "Failed to register " + registration , ex ) ;
}
}