• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Protocol & Firewall

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to serialise a java object only using HTTP protocol? Thank you.
 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
a wee bit from the empire
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic