Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2007

Tip: Looking for answers? Try searching our database.

Sending file based on request from the client

Thread view: 
Mithil - 21 May 2007 09:23 GMT
Hello everyone,

Could some one please tell me how to send a file only when a request
is made by the client using a client server model. I have got a client
and server program running and server can send files to the client but
I don't know how to make it work only if there is a request by a
client a server should start up and send files. Any help would be
greatly appreciated !!!!

Thanks in advance,
Mithil
christopher@dailycrossword.com - 24 May 2007 05:11 GMT
mithil -- this post doesn't make any sense.  you say you have a
'client
and server program running'.  You will have to be a lot more specific,
because if the client and server are 'talking' then one should be able
to respond to the other.  how are you establishing the connection?
webpage? applet? servlet? sockets? what succeeds?  what fails?

> Hello everyone,
>
[quoted text clipped - 7 lines]
> Thanks in advance,
> Mithil
Martin Gregorie - 24 May 2007 12:41 GMT
> mithil -- this post doesn't make any sense.  you say you have a
> 'client
[quoted text clipped - 14 lines]
>> Thanks in advance,
>> Mithil

Obvious answer: a server NEVER originates an action. It only ever
response to a request by a client. Although is usual for the response to
be (relatively) instant this doesn't stop the client sending a request
like "tell me if 'X' happens".

If you really mean that the server isn't normally running and only
starts when a client connects to it, that';s a different, OS-specific
case. I would use the xinetd super-server to start the application
server but then I'm running Linux. That won't work for all OSen but you
forgot to say what OS you're using.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.