HTTP 1.1 or RMI

Hi all
which of both is faster in order to access application server and why ?

1. HTTP 1.1 which open a connection without closing it
2. RMI

which one and why?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dannyshAuthor Commented:
I forgot the data I send is an XML
HTTP cos it does much less handshaking and validation...
DO you have any firewalls / security requirements? Because then only HTTP (or HTTP/s) will work.
RMI is faster, because you can send an XMLDocument object over the network, which might take more network bandwidth but will save you the need to serialize it on the client and parse it on the server.
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

> but will save you the need to serialize it on the client and parse it on the server

Only because RMI does this for you...  it will still get serialized and deserialized...
dannyshAuthor Commented:

>> DO you have any firewalls ...
is it a problem cause if I open port 1099 it should work no ?

>> Only because RMI does this for you...  it will still get serialized and deserialized

as I understand no matter which one I will use the same work done, am I right?

Serializing the Document is not the same as sending the XML as String and then reparsing it.
It is much more efficient to send the Document object. This is why it takes more network bandwidth.

The Document object is not serializable according to the spec. But, all implementations I know of are defining Document as serialized.
dannyshAuthor Commented:
And what about the firewall , If I will open port 1099 (used for the lookup) is it fine ?
You will have to configure it by hand. Not all sites allow this.
But if you configure the firewall, it will work.

However, if this is a remote site, and you pass other routers and stuff in the middle, you might get stuck.

Why think about HTTP anyway?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dannyshAuthor Commented:
NO I am not thinking about using HTTP, I will use RMI.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.