P
Paul Smith
Hello,
I have a Java client/server application. I am making changes to the
server piece so that it can be accessed from an HTML client. I am
using Tomcat on the server side. Although I can have a single code
base on the server side, is it possible to have only one instance of
the server servicing both the HTML clients and Java clients? As I see
it at the moment, I'll have to have my Java server running servicing
the Java clients, and my Tomcat server running servicing the HTML
clients. Because of the nature of the server, it is not ideal to have
two of them (the server caches certain data for a start!). So I would
like to have the Tomcat server service both HTML and Java client
requests, but I can't quite get my head round how to do that. I guess
my server code would have to determine whether the request had come
from a Java client (in which case coarse XML is returned to the
intelligent client for processing) or from an HTML client, in which
case the coarse XML returned from the business objects in response to
the request is formatted using XSLT into simple HTML for display on
the thin, un-intelligent, client browser.
Can anyone give me any constructive pointers?
Thanks,
Paul
I have a Java client/server application. I am making changes to the
server piece so that it can be accessed from an HTML client. I am
using Tomcat on the server side. Although I can have a single code
base on the server side, is it possible to have only one instance of
the server servicing both the HTML clients and Java clients? As I see
it at the moment, I'll have to have my Java server running servicing
the Java clients, and my Tomcat server running servicing the HTML
clients. Because of the nature of the server, it is not ideal to have
two of them (the server caches certain data for a start!). So I would
like to have the Tomcat server service both HTML and Java client
requests, but I can't quite get my head round how to do that. I guess
my server code would have to determine whether the request had come
from a Java client (in which case coarse XML is returned to the
intelligent client for processing) or from an HTML client, in which
case the coarse XML returned from the business objects in response to
the request is formatted using XSLT into simple HTML for display on
the thin, un-intelligent, client browser.
Can anyone give me any constructive pointers?
Thanks,
Paul