Comments (3)
@tbf2000 that seems like something we could do. How similar is the interface for each connector?
If you're interested in to prototyping it this is a good place to start.
from webapp-runner.
The interface of the APR connector is no challenge. You can just set instatiate it using the apr-specific classname:
String connectorClassName = tomcatNative ? "org.apache.coyote.http11.Http11AprProtocol"
: "org.apache.coyote.http11.Http11NioProtocol";
Connector httpConnector = new Connector(connectorClassName);
But before you do that, you have to add the AprLifecycleListener to the Tomcat instance:
LifecycleListener[] lifecycleListeners = tomcat.getServer().findLifecycleListeners();
AprLifecycleListener aprLifecycleListener = null;
if (null != lifecycleListeners) {
for (LifecycleListener lifecycleListener : lifecycleListeners) {
if (lifecycleListener instanceof AprLifecycleListener) {
aprLifecycleListener = (AprLifecycleListener) lifecycleListener;
}
}
}
if (null == aprLifecycleListener) {
aprLifecycleListener = new AprLifecycleListener();
tomcat.getServer().addLifecycleListener(aprLifecycleListener);
}
aprLifecycleListener.setUseAprConnector(true);
aprLifecycleListener.setSSLEngine("off");
aprLifecycleListener.setUseOpenSSL(false);
For "nio2", I do not know, but I do not expect any surprises.
from webapp-runner.
Hello! Since this is an old issue and many things have changed since it was opened I will close it for now. Feel absolutely free to re-open it if it is still relevant so we can work on it! :)
from webapp-runner.
Related Issues (20)
- Add support for XMemcached
- From 8.5.38.0 and up, receiving error about duplicate web fragments of name org_apache_jasper HOT 13
- Is it possible to open both a port and an httpsPort? HOT 2
- how to define CATALINA_OPTS for my webapp
- Unusual java process hang while using webapp-runner HOT 2
- Failed test while building HOT 3
- Change Tomcat default error pages HOT 2
- Illegal reflective access operation WARNING after JDK 11 HOT 2
- -AmaxPostSize=-1 not work, cannot post large content HOT 11
- How disable JSP tag pooling ? HOT 3
- LinkageError when deploying spring boot application HOT 3
- Increase Heroku slugsize HOT 1
- Tomcat 9.0.41 don't recognize annotations like @WebServlet HOT 1
- Dependency org.apache.tomcat:tomcat-catalina, leading to CVE problem HOT 1
- Name [java:comp/env] is not bound in this Context. Unable to find [java:comp] HOT 2
- execution error HOT 1
- 413 Request Entity too Large for large file uploads
- Please consider adding Tomcat 10.1 support HOT 7
- Security Vulnerability - Action Required: URL Redirection to Untrusted Site vulnerability in the newest version of com.github.jsimone:webapp-runner HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapp-runner.