由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - what is best for Java Desktop GUI
相关主题
Can someone help on Soap?问个SOAP Service的问题
弱人来提个问题How to create web service client to remote SSL service (HTTPS)?
怎么把servlet publish成web servicesWeb service framework choice?
Re: Which Web service is better EJB or RSOAP over JMS with CXF frame?
怎样才能Firefox add-on和java程序之间传递数据java web service 得迷惑
Help: web service questionsJava Web Services Tutorial 这个是最新的吗?
Java/J2EE的书求指教: CXF Cleint API for Axis2 SOAP web service问题
探讨一个 ORM + web service 的问题soap binding with CXF
相关话题的讨论汇总
话题: java话题: rmi话题: desktop话题: gui话题: webservice
进入Java版参与讨论
1 (共1页)
h**k
发帖数: 662
1
what is best to use to create Java Desktop GUI? thanks
z****e
发帖数: 54598
2
用java webstart吧
不过我没用过
T*********g
发帖数: 496
3
swt/jface.

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

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

【在 k***r 的大作中提到】
: 怎么talk呢,webservice很慢的
k***r
发帖数: 4260
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.

g*****g
发帖数: 34805
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.

F****n
发帖数: 3271
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.

相关主题
Help: web service questions问个SOAP Service的问题
Java/J2EE的书How to create web service client to remote SSL service (HTTPS)?
探讨一个 ORM + web service 的问题Web service framework choice?
进入Java版参与讨论
k***r
发帖数: 4260
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

g*****g
发帖数: 34805
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

m******t
发帖数: 2416
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

k***r
发帖数: 4260
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

g*****g
发帖数: 34805
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 ...

m******t
发帖数: 2416
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 ...

k***r
发帖数: 4260
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.

k***r
发帖数: 4260
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.

g*****g
发帖数: 34805
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?

m******t
发帖数: 2416
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?
相关主题
SOAP over JMS with CXF frame?求指教: CXF Cleint API for Axis2 SOAP web service问题
java web service 得迷惑soap binding with CXF
Java Web Services Tutorial 这个是最新的吗?如何在CXF framework中捕获Inceptor产生的exception
进入Java版参与讨论
k***r
发帖数: 4260
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).

g*****g
发帖数: 34805
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?

k***r
发帖数: 4260
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.

g*****g
发帖数: 34805
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?
m******t
发帖数: 2416
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.

1 (共1页)
进入Java版参与讨论
相关主题
soap binding with CXF怎样才能Firefox add-on和java程序之间传递数据
如何在CXF framework中捕获Inceptor产生的exceptionHelp: web service questions
java SOAP比restful难学吗?Java/J2EE的书
【供求】招软件工程师 (转载)探讨一个 ORM + web service 的问题
Can someone help on Soap?问个SOAP Service的问题
弱人来提个问题How to create web service client to remote SSL service (HTTPS)?
怎么把servlet publish成web servicesWeb service framework choice?
Re: Which Web service is better EJB or RSOAP over JMS with CXF frame?
相关话题的讨论汇总
话题: java话题: rmi话题: desktop话题: gui话题: webservice