avatar
need your comments# Java - 爪哇娇娃
c*u
1
I am writing an application, the client side I am using java web start(
basically an application),
the server side I wrote an application for now. They communicate via
socket. Now I am wondering if it's a good idea to change the server side
to a servlet, still using socket.It might be more flexible for servlet
to talk to database? I am a novice to servlet now and still learning it.
The book says servlet can be of general purpose, but it's good at
handling HTTP related stuff.
avatar
m*t
2

Since you have a rich client, either SOAP or RMI would be a better choice
than servlet.

【在 c****u 的大作中提到】
: I am writing an application, the client side I am using java web start(
: basically an application),
: the server side I wrote an application for now. They communicate via
: socket. Now I am wondering if it's a good idea to change the server side
: to a servlet, still using socket.It might be more flexible for servlet
: to talk to database? I am a novice to servlet now and still learning it.
: The book says servlet can be of general purpose, but it's good at
: handling HTTP related stuff.

avatar
c*u
3
thanks. Can you tell me why SOAP or RMI are better?

【在 m******t 的大作中提到】
:
: Since you have a rich client, either SOAP or RMI would be a better choice
: than servlet.

avatar
s*n
4
typically a servlet is deemed as an extension of web servers.
since ur client is not a web browser, it may not be necessary to use a servlet
as ur work could be heavy in format ur information dissemination.
rmi could make ur code neat. or otherwise if u wish to extend ur application as
a web service, apache axis can offer u necessary assistance.

【在 c****u 的大作中提到】
: thanks. Can you tell me why SOAP or RMI are better?
avatar
c*u
5
thanks.

【在 s*********n 的大作中提到】
: typically a servlet is deemed as an extension of web servers.
: since ur client is not a web browser, it may not be necessary to use a servlet
: as ur work could be heavy in format ur information dissemination.
: rmi could make ur code neat. or otherwise if u wish to extend ur application as
: a web service, apache axis can offer u necessary assistance.

avatar
k*e
6
Actually, it is a good idea to use servlet at server side. But my concern
is how web start support cookie. Without cookie, you cannot use the existed
session mechanism.

【在 c****u 的大作中提到】
: I am writing an application, the client side I am using java web start(
: basically an application),
: the server side I wrote an application for now. They communicate via
: socket. Now I am wondering if it's a good idea to change the server side
: to a servlet, still using socket.It might be more flexible for servlet
: to talk to database? I am a novice to servlet now and still learning it.
: The book says servlet can be of general purpose, but it's good at
: handling HTTP related stuff.

avatar
c*u
7
can anyboy tell me what are the pros and cons of servlet and SOAP?
Also what's their major difference?

【在 k******e 的大作中提到】
: Actually, it is a good idea to use servlet at server side. But my concern
: is how web start support cookie. Without cookie, you cannot use the existed
: session mechanism.

avatar
v*x
8
SOAP lets you trigger processes on a server from a remote program. You can
create classes (with methods and properties) that can be created remotely
and SOAP takes care of the details about marshalling data types, even across
heterogenous environments (most of the time!). It's sort of like RPC over
HTTP. You can write SOAP in Java, C++ or other languages.
Java Servlets are specialized Java classes that handle mostly HTTP
requests/responses, they are often used to parse or fill in forms. It is

【在 c****u 的大作中提到】
: can anyboy tell me what are the pros and cons of servlet and SOAP?
: Also what's their major difference?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。