Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

HTTP 1.1 or RMI

Posted on 2003-12-10
9
233 Views
Last Modified: 2011-04-14
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?
0
Comment
Question by:dannysh
  • 4
  • 3
  • 2
9 Comments
 

Author Comment

by:dannysh
ID: 9911751
I forgot the data I send is an XML
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9911774
HTTP cos it does much less handshaking and validation...
0
 
LVL 9

Expert Comment

by:vzilka
ID: 9911778
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.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 35

Expert Comment

by:TimYates
ID: 9911791
> 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...
0
 

Author Comment

by:dannysh
ID: 9911836
Hi

>> 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?


0
 
LVL 9

Expert Comment

by:vzilka
ID: 9911891
No.
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.
0
 

Author Comment

by:dannysh
ID: 9911913
Hi
And what about the firewall , If I will open port 1099 (used for the lookup) is it fine ?
0
 
LVL 9

Accepted Solution

by:
vzilka earned 50 total points
ID: 9911941
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?
0
 

Author Comment

by:dannysh
ID: 9911984
NO I am not thinking about using HTTP, I will use RMI.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question