Solved

HTTP 1.1 or RMI

Posted on 2003-12-10
9
230 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
What is the latest versions eclipse neon 2 141
Eclipse IDE - Cannot copy/paste from console output 8 132
GUI builder for Eclipse? 8 27
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now