mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2600 - jetty 7 - some more fixes
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@908433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fa9f4ac9cc
commit
5a7ceacce9
|
@ -38,7 +38,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>
|
||||
|
|
|
@ -264,6 +264,7 @@ public class MessageListenerServlet extends MessageServletSupport {
|
|||
}
|
||||
|
||||
Continuation continuation = ContinuationSupport.getContinuation(request);
|
||||
continuation.setTimeout(timeout);
|
||||
Listener listener = getListener(request);
|
||||
if (listener != null && continuation != null && !continuation.isSuspended()) {
|
||||
listener.access();
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
|
||||
<!-- <bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/> -->
|
||||
<bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
||||
|
||||
<bean id="Server" class="org.eclipse.jetty.server.Server" init-method="start" destroy-method="stop">
|
||||
|
||||
|
@ -41,8 +41,7 @@
|
|||
<bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
||||
<property name="handlers">
|
||||
<list>
|
||||
<!-- <ref bean="contexts"/>
|
||||
<bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/> -->
|
||||
<ref bean="contexts"/>
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/admin"/>
|
||||
<property name="resourceBase" value="${activemq.base}/webapps/admin"/>
|
||||
|
@ -53,16 +52,20 @@
|
|||
<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"/>
|
||||
<property name="logUrlOnStart" value="true"/>
|
||||
</bean>
|
||||
<!--
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/fileserver"/>
|
||||
<property name="resourceBase" value="${activemq.base}/webapps/fileserver"/>
|
||||
<property name="logUrlOnStart" value="true"/>
|
||||
</bean>-->
|
||||
</bean>
|
||||
-->
|
||||
<bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
|
Loading…
Reference in New Issue