Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to handle multiple requests from single client??

843790Oct 16 2008 — edited Oct 17 2008
hi all

I wrote a client server program to handle requests from client.I have 2 types of requests, one is to submit comments to the server other is to view comments on the server.I have tested the app and it works fine for either of them(independently) but they don't work both together i.e when i submit a comment and view it,it's stuck and when i close the program it gives SocketException :Connection reset.

on client side:
My request is just a string

on the server side:

I check the string and give the client what it wants.

I want to know if there's any other way to send requests other than passing it as a string.

I can post my code if needed.

thanks,
Sree
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2008
Added on Oct 16 2008
28 comments
790 views