mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2600 - jetty 7 - testing/including camel web app and other small changes
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@908492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47b09a2a89
commit
5dd95eaa09
|
@ -56,7 +56,7 @@
|
|||
<version>${jetty-version}</version>
|
||||
<configuration>
|
||||
<connectors>
|
||||
<connector implementation="org.eclipse.jetty.nio.SelectChannelConnector">
|
||||
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
||||
<port>${jetty.port}</port>
|
||||
<maxIdleTime>60000</maxIdleTime>
|
||||
</connector>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
package org.apache.activemq.web.tool;
|
||||
|
||||
import org.eclipse.jetty.server.Connector;
|
||||
import org.eclipse.jetty.server.Handler;
|
||||
import org.eclipse.jetty.server.Server;
|
||||
import org.eclipse.jetty.server.nio.SelectChannelConnector;
|
||||
import org.eclipse.jetty.webapp.WebAppContext;
|
||||
|
@ -57,9 +56,7 @@ public final class Main {
|
|||
context.setResourceBase(WEBAPP_DIR);
|
||||
context.setContextPath(WEBAPP_CTX);
|
||||
context.setServer(server);
|
||||
/*server.setHandlers(new Handler[] {
|
||||
context
|
||||
});*/
|
||||
server.setHandler(context);
|
||||
server.setConnectors(new Connector[] {
|
||||
connector
|
||||
});
|
||||
|
|
|
@ -205,6 +205,7 @@ public class MessageServlet extends MessageServletSupport {
|
|||
|
||||
// Get the continuation object (may wait and/or retry
|
||||
// request here).
|
||||
continuation.setTimeout(timeout);
|
||||
continuation.suspend();
|
||||
}
|
||||
|
||||
|
|
|
@ -72,9 +72,7 @@ public final class JettyServer {
|
|||
context.setResourceBase(WEBAPP_DIR);
|
||||
context.setContextPath(WEBAPP_CTX);
|
||||
context.setServer(server);
|
||||
/*server.setHandlers(new Handler[] {
|
||||
context
|
||||
});*/
|
||||
server.setHandler(context);
|
||||
server.setConnectors(new Connector[] {
|
||||
connector
|
||||
});
|
||||
|
|
|
@ -47,12 +47,11 @@
|
|||
<property name="resourceBase" value="${activemq.base}/webapps/admin"/>
|
||||
<property name="logUrlOnStart" value="true"/>
|
||||
</bean>
|
||||
<!--<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/camel"/>
|
||||
<property name="resourceBase" value="${activemq.base}/webapps/camel"/>
|
||||
<property name="logUrlOnStart" value="true"/>
|
||||
</bean>
|
||||
-->
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/demo"/>
|
||||
<property name="resourceBase" value="${activemq.base}/webapps/demo"/>
|
||||
|
|
Loading…
Reference in New Issue