• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Protocol & Firewall

 
Nesan Krish
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I use an applet to connect a servlet, I am using HTTP protocol and it will go through firewalls. If I use RMI, I am using RMI protocol and it may not go through firewall. If I use object serialisation, will it go through firewall? Am I missing something? Thank you.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nesan,

The book "Sun Certified Enterprise Architect for J2EE, Study Guide" by Paul Allen and Joseph Bambara speaks about it in pages #67-69.

It says that communication between the user interface and the business tiers can be done via HTTP, RMI, CORBA, DCOM and JMS.

It says the following about Java/RMI:

Java/RMI relies on a protocol called Java Remote Method Protocol (JRMP). Java relies heavily on Java Object Serialization, which allows objects to be marshaled (or transmitted) as a stream. Since Java Object Serialization is specific to Java, both the Java/RMI server object and the client object have to be written in Java. Each Java/RMI server object defines an interface, which can be used to access the server object outside of the current JVM and on the machine's JVM. The interface exposes a set of methods, which are indicative of the services offered by the server object.


Regards,
Dan
[ August 30, 2004: Message edited by: Dan Drillich ]
 
Nesan Krish
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to serialise a java object only using HTTP protocol? Thank you.
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Object serialization is application level service and it is independent of underlying protocol used.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with D. Rose about the fact that object serialization is an application level service. However, object serialization, as the above quote says, is a Java specific feature, which has an architecture consequence: when object serialization is used, both client and server need to be written in Java.

Regards,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic