Service-context propagation over RMI: Implementation follow-up
This follow-up article addresses implementation concerns of Wenbo
Zhu's JavaWorld article "
Service-Context Propagation over RMI," (January 2005). In this
article, Zhu describes a concrete framework implementation and
elaborates on some important technical aspects. While his previous
article mainly discusses concepts, this article focuses on design
and implementation. Related source code has been posted on SourceForge.net and named "extrmi" (extended
Remote Method Invocation). Interested readers can use the published
open source implementation as a simple framework library in related
system design. New features, such as common purpose interceptor
libraries, will be released in the future.
Wenbo Zhu,
April 2005
Create an application-wide user session for J2EE
Despite its comprehensive sets of APIs for writing distributed
applications, J2EE does not provide an application-wide session.
While Web applications can use the HttpSession facility, this
context won't automatically carry over to Enterprise JavaBeans or
J2EE clients. By combining code generation with a mixture of
aspect-oriented programming and a hint of design patterns, it is
possible to provide such a context across components in an
enterprise application and hide most of the complexity from the
developer. This article shows you how.
Kåre Kjelstrøm,
March 2005
Reflective XML-RPC
Java reflection offers a simple but effective way of hiding some of
the complexity of remote procedure calls with XML-RPC (XML-based
Remote Procedure Call). In this article, Stephan Maier shows how to
wrap XML-RPC calls to a remote interface using the gadgets from the
Reflection kit: The Proxy, the Array, and
BeanInfo classes. The article will also discuss
various ramifications of the approach and the use of reflective
methods in RMI (Remote Method Invocation).
Stephan Maier,
February 2005
Service-context propagation over RMI
CORBA supports the passing of service-context information
implicitly with requests and replies over remote object interface
invocation. Without instrumenting the underlying protocol, Java RMI
(Remote Method Invocation) can't easily support transparent
service-context propagation. This article describes a simple and
efficient design approach for supporting such capability over RMI.
In building RMI-based distributed applications, such an approach
can serve as a basic building block for implementing
infrastructure-level functions, such as transaction, security, and
replication.
Wenbo Zhu,
January 2005
Call on extensible RMI
Remote Method Invocation (RMI) has become a standard communication
mechanism between remote Java objects. In spite of that popularity,
the lack of a robust security framework has hindered RMI's
acceptance for wide-area distributed computing. The latest RMI
framework, Jini Extensible Remote Invocation (JERI), introduced as
part of the Jini 2.0 release, features a powerful, highly
configurable RMI security mechanism. This article presents an
extensible RMI overview and demonstrates JERI's configuration
features.
Frank Sommers,
December 2003
Empower RMI with TRMI
The Java RMI (Remote Method Invocation) API provides us with a clean way to build distributed Java applications. The components
that make up these applications communicate with each other by invoking methods on their remote counterparts. Transparent
RMI (TRMI) extends the RMI API to simplify distributed application development by eliminating most of the standard API's overhead.
Guy Gur-ari,
August 2002
Compress your data
December 7, 2002
Tony Sintes,
December 2001
Jini-like discovery for RMI
Not yet on the Jini bandwagon? Despite its powerful mechanisms,
Jini has yet to be accepted in mainstream Java development. Until
that happens, developers need to find better Remote Method
Invocation (RMI) solutions. This article walks you through a
Jini-like discovery mechanism for your RMI development.
Philip Bishop and Nigel Warren,
November 2001
RMI books hit the shelves
At last! New books dedicated to Java's Remote Method Invocation
technology have arrived in bookstores. In this article, Gregg
Sporar reviews and compares two new Java RMI books so you can
choose the best one for your programming needs.
Gregg Sporar,
October 2001
Accelerate your RMI programming
Beginning with JDK 1.1, serialization and Remote Method Invocation
(RMI) were added to the Java platform. While serialization and RMI
are easier to use than alternate technologies, RMI usually runs
slower than equivalent CORBA or remote procedure call (RPC)
solutions. Fortunately, RMI was designed so that you could apply
hand optimizations to gain more speed. This article shows several
of those optimizations, including one that reduces serialization
overhead with Java's externalization mechanism. (4,000
words)
Ashok Mathew and Mark Roulo,
September 2001
Savor success with Java on the front end
Java architects and managers face the challenge of choosing among
Swing-based, HTML-based, and XML-based front ends for their
applications. In this article, Alex Kalinovsky shares his
experiences with these three technologies, and provides criteria
and tips for choosing among them in your Java development. Finally,
you'll learn an innovative approach that bridges Java Swing and
HTML with minimal effort. (3,900 words)
Alex Kalinovsky,
April 2001
Manage distributed sessions
Using RMI and the Proxy API introduced in JDK 1.3, this article
describes a technique that allows one or more servlet servers to
maintain session information on one or more session servers. By
adopting this architecture, no single point of failure will exist
for session management. (2,700 words)
Kelly Davis and Robert Di Marco,
April 2001
The magic of Merlin
This technical overview will give you insight into the various new
features and APIs of the upcoming JDK 1.4 -- code-named
Merlin. The beta version is expected to be released this
month. (3,000 words)
Vinay Aggarwal,
March 2001
Browse user interfaces for Jini services
The ServiceUI specification developed by the Jini.org community
defines a suggested procedure for attaching user interfaces to Jini
services. In this article, Jeffrey Peden -- a new contributor to
the Jiniology column -- introduces you to a simple ServiceUI-based
example service. Then he shows you how to build an application for
browsing and launching user interfaces for Jini services.
Jeffrey Peden,
March 2001
Java Tip 108: Apply RMI autogeneration
Using the tool in this tip, you can make objects written with local
semantics remote. The tool creates remote interfaces that have
roughly the same method signatures as the local interfaces. These
generated interfaces form a layer between the application server
interfaces and the RMI runtime. Client-side translation from the
generated interfaces to the application server interfaces is
performed via runtime-generated proxy objects. You may also use the
tool to "RMI-retrofit" existing interfaces, even those for which no
source code is available. (1,500 words)
Tim Lavers,
February 2001
Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API
Free Download - 5 Minute Product Review. When slow equals Off: Manage the complexity of Web applications - Symphoniq
![]()
Free Download - 5 Minute Product Review. Realize the benefits of real user monitoring in less than an hour. - Symphoniq