You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Colin Saxton <cc...@exel.co.uk> on 2002/03/01 10:08:07 UTC

RE: porting from socket to SOAP

I think you can setup HTTPS with minimal problems using java (jdk1.4 has
direct support for https) but I would encourage you to think stateless with
your design...once you open a connection to the server you are taking up a
valuable resource...if you make it persistant then it is no longer a shared
resource making your application less scalable. Your server load would begin
to become unmanagible the more users logged in...If it is an intranet
application then you should be OK, in some respects. If it is an Internet
application then your server is going to die...

Unless, I am guessing here, you are leaving the server to manage the backend
connections which are swapped from client to client?? 

Anyway...you could set this up yourself with a servlet.

You could connect to the servlet from a java client using the
URL.openConnection which would return a URLConnection object...This object
would allow you to send input and receive output from the servlet which in
turn could sit in a loop retreiving and writing data back to the client...

If you would like a sample peice of code showing you how this is done then
drop me a mail and I can supply a zip...


************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. Any views or opinions are solely those of
the author and do not necessarily represent those of Exel
Computer Systems plc. If you have received this email in error
please notify Customer Services on 0115 946 0101.
************************************************************************