Re: data push

2005-09-01 Thread Lionel Farbos
You can see JMS and joram (http://joram.objectweb.org/) Note : Joram is embedded in Jonas (http://jonas.objectweb.org/) and Tomcat too... On Thu, 11 Aug 2005 11:41:34 +0100 Darryl L. Miles [EMAIL PROTECTED] wrote: Paul Wallace wrote: Thanks Len, And what of other protocols? Are

Re: data push

2005-09-01 Thread Brian Cook
Sounds like you are wanting to use the J2EE web services. Probably SOAP. Lionel Farbos wrote: You can see JMS and joram (http://joram.objectweb.org/) Note : Joram is embedded in Jonas (http://jonas.objectweb.org/) and Tomcat too... On Thu, 11 Aug 2005 11:41:34 +0100 Darryl L. Miles [EMAIL

Re: data push

2005-08-12 Thread Darryl L. Miles
Patrick Thomas wrote: Your remark about POJOs being part of the API prompted me to chime in -- William pretty much gave you the general answer, that Tomcat doesn't seem to be the best way to go for this (because everything is passed via http). Maybe HTTP is the transport protocol for a

Re: data push

2005-08-11 Thread Darryl L. Miles
Paul Wallace wrote: Thanks Len, And what of other protocols? Are sockets then required? What are some other protocols that might be used to push/pull data? (off Tomcat I know ;)) Paul. I'm interested in the answer to this too. What terms do I stick into google to find generic

Re: data push

2005-08-11 Thread Will Hartung
From: Paul Wallace [EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 6:38 PM Hi and thanks for that, That's the crux of my question! The data (I am unsure of the protocol it is delivered in) is sent at random points in time i.e not from any request. I wish to create particularly the client

Re: data push

2005-08-11 Thread Patrick Thomas
Darryl, Your remark about POJOs being part of the API prompted me to chime in -- William pretty much gave you the general answer, that Tomcat doesn't seem to be the best way to go for this (because everything is passed via http). I would point out that just as you can serialize/stream objects to

data push

2005-08-10 Thread Paul Wallace
Hi All, I would like server A (TC 5.5) to 'push' streams of data to server B (TC 5.5) at random points in time, and for server B to accept the data when it is received. This is not using request / response, hence I am new to this topic. A couple of questions - what protocol(s) can be used,

Re: data push

2005-08-10 Thread Seth Ladd
Paul Wallace wrote: Hi All, I would like server A (TC 5.5) to 'push' streams of data to server B (TC 5.5) at random points in time, and for server B to accept the data when it is received. This is not using request / response, hence I am new to this topic. A couple of questions - what

RE: data push

2005-08-10 Thread Paul Wallace
Hi Seth, Thanks. And must I open a socket on the client (server B)? Do I attach a listener to it? Thanks Paul. Paul Wallace wrote: Hi All, I would like server A (TC 5.5) to 'push' streams of data to server B (TC 5.5) at random points in time, and for server B to accept the

Re: data push

2005-08-10 Thread Seth Ladd
Paul Wallace wrote: Hi Seth, Thanks. And must I open a socket on the client (server B)? Do I attach a listener to it? Forget sockets, we're at a higher level w/ HTTP and URLs. Use the JDK's URLConnection classes (for starters) to open a URL connection. Create a Servlet on Server B

RE: data push

2005-08-10 Thread Paul Wallace
Thanks, I have most of that in place already. Currently, server A has a HttpURLConnection open and is talking to the Servlet. I can receive data presumably from an InputStream. How do I write data to the Servlet using the connection I have open? Thanks Paul. Hi Seth, Thanks.

Re: data push

2005-08-10 Thread Len Popp
It's not hard to send data from one Tomcat server to another, but the details are a bit complicated. 1. The basic idea is that Server A will periodically send an HTTP POST request to Server B containing a bunch of data. Server B has a servlet that receives this data. (This is the easiest way,

RE: data push

2005-08-10 Thread Paul Wallace
Hi and thanks for that, That's the crux of my question! The data (I am unsure of the protocol it is delivered in) is sent at random points in time i.e not from any request. I wish to create particularly the client (server B) that listens for this data. I (mistakenly) mentioned server A to

Re: data push

2005-08-10 Thread Seth Ladd
Paul Wallace wrote: Thanks, I have most of that in place already. Currently, server A has a HttpURLConnection open and is talking to the Servlet. I can receive data presumably from an InputStream. How do I write data to the Servlet using the connection I have open? Use the

Re: data push

2005-08-10 Thread Len Popp
If you send the data via HTTP, then Server B processes that HTTP request just like any other. It's exactly the same as if a user sent a POST request by typing the data into a form and clicking Submit. Server B receives the POST request and executes the appropriate servlet to process it. -- Len

RE: data push

2005-08-10 Thread Paul Wallace
Users List Subject: Re: data push If you send the data via HTTP, then Server B processes that HTTP request just like any other. It's exactly the same as if a user sent a POST request by typing the data into a form and clicking Submit. Server B receives the POST request and executes the appropriate