Re: Polling with HTTP

Tim Anderson <[email protected]> Tue, 04 Jul 2006 21:30:01 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Eric P. wrote:

In 0.7.7, the http connector is implemented using polling,
which is why you are seeing frequent connections to the
http server.
The 1 second poll interval is probably a just a tad too frequent.
(Tim Anderson)

Hi,

I quote an old Tim's answer about HTTP and polling.

We have a problem with this HTTP polling and asynchronous messaging. One second
is too frequent and we have bandwith cosntraints. Is it planned to make the poll
interval configurable? Is it possible (and planned) to replace the HTTP polling
by pushing?

Regards.

Eric

The only way to change the poll interval at the moment is to modify the

connect() method in org.exolab.jms.net.http.HTTPInputStream class and
extend the sleep() to something larger

than 1000.

The only other planned enhancements to the http connector is to provide
support for blocking reads. This ties

up a thread in the http server so there are tradeoffs using each
approach.

-Tim

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user