Writing RMI Code

To create a WebLogic RMI program, you must write a remote interface (client side), write the server-side implementation of the remote interface, compile (javac) the two classes, execute the weblogic.rmic compiler on the compiled implementation class, and write the RMI client that uses the remote interface. The code listings in later sections are samples for the remote interface, implementation class, and RMI client. Note: The remote interface, implementation class, and weblogic.rmic-generated classes must be available to the WebLogic classpath for execution.

Writing the Remote Interface

Two points to remember when writing a WebLogic RMI remote interface: You must extend the interface java.rm.Remote, and the remote interface must ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.