Re: Network file transfer
- From: "Phillip D Ferguson" <fergy27@xxxxxxxxxxxx>
- Date: Thu, 01 Dec 2005 21:44:00 GMT
Adam,
your comments are much appreciated!!! I began to realise that this is the
easiest approach, as i really wish i had the time to go into java in that
much details as to code my own http server, but you are not the only one to
suggest that i use tomcat etc to do this.
How simple is it to write myself a servlet to deal with my xml files? I
have yet to go into XML in detail with the DOM and SAX availabilities.
Cheers
Phill
<adamspe@xxxxxxxxx> wrote in message
news:1133369076.678615.193480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sorry.
>
>>> Adam / iksrazal,
>>>
>>> as much as i would love to just begin writing my own Http server but i
>>> just
>>> don't have the knowledge at this time.
>>> The spec at the moment is to send xml files from a (mobile) client,
>>> which is
>>> full of data samples. The server then confirms it has the file, then
>>> acts as
>>> a proxy to shunt the xml files to further client machines which will
>>> display
>>> the data samples.
>>> In the end i will want to write what you suggest but i feel i don't have
>>> the
>>> knowledge or the resources to do it. Do you have any recommendations on
>>> going down that road?
>>> At the moment i need to learn more than anything, so just writing a
>>> client/server setup which sends files is great. I then intend to go into
>>> XML
>>> and the proxy setup on the other side.
>>
>> My thought here was not that you write an HTTP Server. There's no need
>> to do such a thing since there are many freely available ones out there
>> to meet that need. you could simply run Tomcat with HTTP enabled or
>> Apache+tomcat or pick your favorite webserver servlet engine combo and
>> write a tiny servlet to plug in there to consume your XML. All the
>> protocol details, authentication, etc. will be handled by the server
>> and the java.net classes on your client side, no need to -really-
>> understand all the specifics of the underlying protocol, just small
>> bits of code on both sides of the wire.
>
> My point was that existing software and APIs exist to deal with both
> sides of the wire via HTTP that could be re-used without the need to
> invent a protocol and write the client and server.
>
.
- References:
- Re: Network file transfer
- From: adamspe
- Re: Network file transfer
- Prev by Date: Re: A good text editor for JAVA?
- Next by Date: Re: Use 2 dimensional array to instantiate new objects
- Previous by thread: Re: Network file transfer
- Next by thread: IBM Java 5 released!
- Index(es):
Relevant Pages
|