E
exquisitus
I am developing a J2EE app, front end is a fat client accross the
internet. Until recently, I was planning to use RMI to communicate
between f/end and server but after lots more reading I have decided
against it (for reasons which would be obvious to anyone attempting to
reply this post - so to keep the post brief, I'll skip enumerating them
here).
I want to use a servlet layer at the backend, because my client will
almost definitely be behind a firewall/using a proxy server (I will
therefore need http/s tunneling to communicate with clients). I have
come up with a class which acts as a Facade to clients and presents a
course simpler request/response API to clients. I have a Requset Factory
which creates Asynch and Synch Requests. I am however stuck now and need
some help. I am not sure how to convert my method call into an HTTP
request (I have read several Servlet tutorials but still can't see a
usefule xample that shows how a thick client can use a servlet - all
examples seem to be about web browsers).
Additionaly, I have not entirely worked out how I can "force" certain
requests (i.e. SynchRequests) to be blocking. I have some ideas, but
there are all pretty much hacks. i would be grateful for any ideas or
pointers here.
Lastly, whilst all this request/response is going on, I want to be
"pushing" data from the server to the client through the same tunnel. Is
this possible?. Can I send request/responses AND data on the same tunnel
(presumably the same port)?.
Tks
internet. Until recently, I was planning to use RMI to communicate
between f/end and server but after lots more reading I have decided
against it (for reasons which would be obvious to anyone attempting to
reply this post - so to keep the post brief, I'll skip enumerating them
here).
I want to use a servlet layer at the backend, because my client will
almost definitely be behind a firewall/using a proxy server (I will
therefore need http/s tunneling to communicate with clients). I have
come up with a class which acts as a Facade to clients and presents a
course simpler request/response API to clients. I have a Requset Factory
which creates Asynch and Synch Requests. I am however stuck now and need
some help. I am not sure how to convert my method call into an HTTP
request (I have read several Servlet tutorials but still can't see a
usefule xample that shows how a thick client can use a servlet - all
examples seem to be about web browsers).
Additionaly, I have not entirely worked out how I can "force" certain
requests (i.e. SynchRequests) to be blocking. I have some ideas, but
there are all pretty much hacks. i would be grateful for any ideas or
pointers here.
Lastly, whilst all this request/response is going on, I want to be
"pushing" data from the server to the client through the same tunnel. Is
this possible?. Can I send request/responses AND data on the same tunnel
(presumably the same port)?.
Tks