git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@908433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-02-10 10:09:22 +00:00
parent fa9f4ac9cc
commit 5a7ceacce9
3 changed files with 10 additions and 6 deletions

View File

@ -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>

View File

@ -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();

View File

@ -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>
@ -70,4 +73,4 @@
</bean>
</beans>
</beans>