Redian新闻
>
what is best for Java Desktop GUI
avatar
what is best for Java Desktop GUI# Java - 爪哇娇娃
h*k
1
what is best to use to create Java Desktop GUI? thanks
avatar
z*e
2
用java webstart吧
不过我没用过
avatar
T*g
3
swt/jface.

【在 h**k 的大作中提到】
: what is best to use to create Java Desktop GUI? thanks
avatar
t*e
4
swing
avatar
h*k
5
如果.net写前端,java写server是不是不错
avatar
k*r
6
怎么talk呢,webservice很慢的

【在 h**k 的大作中提到】
: 如果.net写前端,java写server是不是不错
avatar
g*g
7
webservice is not necesarily slow. And if it's really slow
for you, consider restful service.

【在 k***r 的大作中提到】
: 怎么talk呢,webservice很慢的
avatar
k*r
8
At work we provide both RMI and web service. Web service
takes overall 10x-20x time as RMI. I'm not sure if all is
because of webservice but I suspect it's one of the major
contributors.

【在 g*****g 的大作中提到】
: webservice is not necesarily slow. And if it's really slow
: for you, consider restful service.

avatar
g*g
9
My experience with web service is generally pleasant,
definitely not 10x slower than RMI.

【在 k***r 的大作中提到】
: At work we provide both RMI and web service. Web service
: takes overall 10x-20x time as RMI. I'm not sure if all is
: because of webservice but I suspect it's one of the major
: contributors.

avatar
F*n
10
If you have a lot of objects to send then WebService will definitely be much
slower

【在 k***r 的大作中提到】
: At work we provide both RMI and web service. Web service
: takes overall 10x-20x time as RMI. I'm not sure if all is
: because of webservice but I suspect it's one of the major
: contributors.

avatar
k*r
11
Indeed. Or, if you have a series of calls to make, the latency
becomes much more obvious.

much

【在 F****n 的大作中提到】
: If you have a lot of objects to send then WebService will definitely be much
: slower

avatar
g*g
12
You should try to use a Facade pattern to consolidate the
parameters if you can.

【在 k***r 的大作中提到】
: Indeed. Or, if you have a series of calls to make, the latency
: becomes much more obvious.
:
: much

avatar
m*t
13

If by "web service" you guys mean soap, most client toolkits
these days support "keep alive" connections to mitigate the
latency problem.
Of course being chatty is never a good practice in any rpc
programming.
The poor performance of soap compared to rmi could mostly
be attributed to the xml marshalling cost. One project I worked
on, we had huge loan objects to ship over the wire and Axis
just couldn't handle it. We ended up doing binary serialization
ourselves and wrapping the bytes in a soa

【在 k***r 的大作中提到】
: Indeed. Or, if you have a series of calls to make, the latency
: becomes much more obvious.
:
: much

avatar
k*r
14
What kind of problems did you have with Axis?
Wrapping binaries in XML doesn't sound very efficient
either to me ...

【在 m******t 的大作中提到】
:
: If by "web service" you guys mean soap, most client toolkits
: these days support "keep alive" connections to mitigate the
: latency problem.
: Of course being chatty is never a good practice in any rpc
: programming.
: The poor performance of soap compared to rmi could mostly
: be attributed to the xml marshalling cost. One project I worked
: on, we had huge loan objects to ship over the wire and Axis
: just couldn't handle it. We ended up doing binary serialization

avatar
g*g
15
When performance is a concern, you can always try binary
protocol like hession.

【在 k***r 的大作中提到】
: What kind of problems did you have with Axis?
: Wrapping binaries in XML doesn't sound very efficient
: either to me ...

avatar
m*t
16

One word: size. We had these huge objects, and the developers
chose to give the classes and properties _real_ long names. So
Each object ends up in megs after being marshalled into xml.

【在 k***r 的大作中提到】
: What kind of problems did you have with Axis?
: Wrapping binaries in XML doesn't sound very efficient
: either to me ...

avatar
k*r
17
Thanks. It looks interesting and looks like a good fit
for some binary data heavy scenarios. Do you have any
experience with it?

【在 g*****g 的大作中提到】
: When performance is a concern, you can always try binary
: protocol like hession.

avatar
k*r
18
Tried compression before sending data on wire?

【在 m******t 的大作中提到】
:
: One word: size. We had these huge objects, and the developers
: chose to give the classes and properties _real_ long names. So
: Each object ends up in megs after being marshalled into xml.

avatar
g*g
19
Yes, we use it for our production. The good thing is that
spring has built-in support for it, and it actually has
C++ support too (which we never tried).

【在 k***r 的大作中提到】
: Thanks. It looks interesting and looks like a good fit
: for some binary data heavy scenarios. Do you have any
: experience with it?

avatar
m*t
20

We could have done that perhaps by plugging code into axis and
customizing the marshalling logic, but the developer in charge of it
chose the easy way out. 8-)

【在 k***r 的大作中提到】
: Tried compression before sending data on wire?
avatar
k*r
21
That's good to know. So you use a mixture of protocols?
Or all hession?

【在 g*****g 的大作中提到】
: Yes, we use it for our production. The good thing is that
: spring has built-in support for it, and it actually has
: C++ support too (which we never tried).

avatar
g*g
22
Of course you use a mixture of protocols.
binary protocols may not work with a firewall.
Usually you design it in the way that they are
interchangable. If you are using spring, it may
just be some different configuration on the server
side.

【在 k***r 的大作中提到】
: That's good to know. So you use a mixture of protocols?
: Or all hession?

avatar
k*r
23
I mean, in the same application?

【在 g*****g 的大作中提到】
: Of course you use a mixture of protocols.
: binary protocols may not work with a firewall.
: Usually you design it in the way that they are
: interchangable. If you are using spring, it may
: just be some different configuration on the server
: side.

avatar
g*g
24
It always depends. WS is the more ubiquitous solution
that can easily tunnel through firewall. RMI, Hessian etc.
may be restricted on your deployment firewall settings,
which may or may not be possible.
We have a server that talks hessian with admin console through
vpn, and WS with clients. I think you can always start with
RPC style WS, like spring + CXF for minimum efforts. And
seek necessary alternatives when the requirement is more clear.
There's no one fit all solution.

【在 k***r 的大作中提到】
: I mean, in the same application?
avatar
m*t
25

I'm not sure I would consider firewall a major issue.
RMI also supports http tunneling. Hessian (normally)
runs over http to begin with.

【在 g*****g 的大作中提到】
: It always depends. WS is the more ubiquitous solution
: that can easily tunnel through firewall. RMI, Hessian etc.
: may be restricted on your deployment firewall settings,
: which may or may not be possible.
: We have a server that talks hessian with admin console through
: vpn, and WS with clients. I think you can always start with
: RPC style WS, like spring + CXF for minimum efforts. And
: seek necessary alternatives when the requirement is more clear.
: There's no one fit all solution.

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