client server communication in java  
Author Message
anu





PostPosted: 2006-7-21 4:29:00 Top

java-programmer, client server communication in java I have a java web service that returns byte arrays to the client.
First a byte array is returned and the server gets the acknowledgement,
then the next byte array is sent and so on. But I don't have much idea
how to implement it. How can I resume from where I stopped at the
server side? Can anyone give me some idea so that I can proceed?

 
Oliver Wong





PostPosted: 2006-7-21 4:58:00 Top

java-programmer >> client server communication in java
"anu" <email***@***.com> wrote in message
news:email***@***.com...
> I have a java web service that returns byte arrays to the client.
> First a byte array is returned and the server gets the acknowledgement,
> then the next byte array is sent and so on. But I don't have much idea
> how to implement it. How can I resume from where I stopped at the
> server side? Can anyone give me some idea so that I can proceed?

Is this using the HTTP protocol? Is this done over a single connection,
or does the server and client disconnect repeatedly during the transaction?
Does the acknowledgement happen at the application layer, transport layer,
or network layer?

- Oliver

 
anu





PostPosted: 2006-7-21 5:08:00 Top

java-programmer >> client server communication in java I am using Axis web service in java. Everything is done in a single
connection and once all the byte arrays are transferred, I will commit
the transaction. Every thing is done at the application layer. So how
the client and server communicate in between? How will I implement it?

Oliver Wong wrote:
> "anu" <email***@***.com> wrote in message
> news:email***@***.com...
> > I have a java web service that returns byte arrays to the client.
> > First a byte array is returned and the server gets the acknowledgement,
> > then the next byte array is sent and so on. But I don't have much idea
> > how to implement it. How can I resume from where I stopped at the
> > server side? Can anyone give me some idea so that I can proceed?
>
> Is this using the HTTP protocol? Is this done over a single connection,
> or does the server and client disconnect repeatedly during the transaction?
> Does the acknowledgement happen at the application layer, transport layer,
> or network layer?
>
> - Oliver

 
 
Oliver Wong





PostPosted: 2006-7-21 5:46:00 Top

java-programmer >> client server communication in java
"anu" <email***@***.com> wrote in message
news:email***@***.com...
>I am using Axis web service in java. Everything is done in a single
> connection and once all the byte arrays are transferred, I will commit
> the transaction. Every thing is done at the application layer. So how
> the client and server communicate in between? How will I implement it?

I'm not familiar with Axis, but if this is a "web service", I'm assuming
you're using the HTTP protocol. The HTTP protocol is supposed to be
stateless, so you simply cannot have server wait for the client to send
acknowledgements at the application layer.

- Oliver