简体   繁体   English

在IBM Websphere AppServer上使用Java Servlets 2来构建彗星应用程序的正确方法

[英]What a right way to build comet application, using Java Servlets 2 on IBM Websphere AppServer

I prefer long polling, but my implementation has some problems. 我更喜欢长时间轮询,但是我的实现存在一些问题。 I send ajax request to servlet, that run infinity loop: 我向运行无限循环的servlet发送ajax请求:

do {
  // some process
} while (/* some process is not finished */);

You'll need the Web messaging service . 您将需要Web消息服务 There is a lot to configure so it doesn't make sense to write all in an answer. 有很多需要配置的内容,因此没有必要将所有内容都写在答案中。 Here is a tutorial 这是一个教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 / opt / IBM / WebSphere / AppServer / java / bin / java:没有这样的文件或目录 - /opt/IBM/WebSphere/AppServer/java/bin/java: No such file or directory 什么是使用servlet的正确方法? - What is a right way to use servlets? 有没有办法在IBM WebSphere Application Server上使用WebSockets? - Is there a way to use WebSockets on IBM WebSphere Application Server? java.lang.SecurityException:Jar(/opt/WebSphere/AppServer7/plugins/com.ibm.ws.security.crypto.jar)未由可信签署人签署 - java.lang.SecurityException: The Jar (/opt/WebSphere/AppServer7/plugins/com.ibm.ws.security.crypto.jar) is not signed by a trusted signer servlet是编写Java Web应用程序的唯一方法 - Are servlets the only way to write a Java Web Application IBM Websphere中的Java 7.1 - Java 7.1 in IBM Websphere 使用Servlet与持久性Java应用程序对话 - Using servlets to talk to persistent java application 使用Hibernate JPA 2.1将应用程序部署到IBM WebSphere会产生NullPointerException - Deploying application using Hibernate JPA 2.1 to IBM WebSphere gives NullPointerException 无法使用IBM Rational Application Developer将WAR文件部署到Websphere - Unable to deploy WAR file to Websphere using IBM Rational Application Developer 是否可以使用IBM Websphere在计划的时间运行jar - Is there a way to run a jar at scheduled times using IBM websphere
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM