Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTTP 1.1 or RMI

Posted on 2003-12-10
9
Medium Priority
?
238 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
[X]
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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
This video teaches viewers about errors in exception handling.

610 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