Rmi Over Iiop: David Heisser Manager, Java Enterprise Technologies Simon Nash Senior Technical Staff Member, IBM
Rmi Over Iiop: David Heisser Manager, Java Enterprise Technologies Simon Nash Senior Technical Staff Member, IBM
David Heisser
Manager, Java Enterprise Technologies
Simon Nash
Senior Technical Staff Member, IBM
Agenda
• Allow interoperability:
– Both C++ and Java technology-based
applications can
• Implement interfaces
• Call interfaces
– C++ developers use IDL interfaces
– Developers using Java technology see
RMI interfaces
Object-by-Value Goals
• Result is a trade-off
– Support common cases well
– Less concerned about obscure cases
Java™ Technology to IDL
Mapping Non-Goals
Java RMI
Interface
Definition Java RMI
Java RMI
Client Implementation
IIOP IIOP
Stub Tie
Java RMI
Interface
Definition
Java RMI C++ CORBA
Client Implementation
IDL
Java RMI
Interface
Definition Java RMI
Java RMI
Client Implementation
IIOP IIOP
Stub Tie
• User APIs
– javax.rmi.PortableRemoteObject
– Server base class, narrow method
• Portability APIs
– Utility functions for portable stubs and ties
– Runtime functionality common across ORBs
– Java language serialization over IIOP
Stub Generator
Java RMI
Interface
Definition Java RMI
Java RMI
Client Implementation
IIOP IIOP
Stub Tie
Java RMI
Interface
Definition
Java RMI C++ CORBA
Client Implementation
IDL
2.5
1.5
scalar
1 array[1]
0.5
0
JRMP beta 7b 8c fcs2 fcs4
Performance
3 scalar
array[1]
2
0
JRMP beta 7b 8c fcs2 fcs4
Performance
Array of 64 elements
250
200
150
structure
100 obj ref
50
0
JRMP beta 7b 8c fcs2 fcs4
Resources