File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX:Rmi Help SOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX:Rmi Help SOS" Watch "NX:Rmi Help SOS" New topic

NX:Rmi Help SOS


Joined: May 25, 2003
Posts: 21
Today I download the document.
In the document,I found some words like :
Restrictions on RMI
To avoid unnecessary complexity in the marking environment certain restrictions are placed on solutions that use RMI. Specifically:

You must not require the use of an HTTP server.
You must not require the installation of a security manager.
You must provide all classes pre-installed so that no dynamic class downloading occurs.
You must use RMI over JRMP (do not use IIOP)
Now I am confused.
Before running the Server,i must typed "start
rmiregistry" and direct the policy file.
how can i do if i want to use RMI ?
please help me !!!
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Before running the Server,i must typed "start rmiregistry" and direct the policy file.

You really don't need to do either of those. You don't need a policy file and you don't have to start the registry from the command line. You can start the registry inside your code with LocateRegistry.createRegistry() from withing your code.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1304
what does JRMP stands for?
what is it

BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

Hi Billy,
From Sun's Fundamentals of RMI short course:

On top of TCP/IP, RMI uses a wire level protocol called Java Remote Method Protocol (JRMP). JRMP is a proprietary, stream-based protocol that is only partially specified is now in two versions. The first version was released with the JDK 1.1 version of RMI and required the use of Skeleton classes on the server. The second version was released with the Java 2 SDK. It has been optimized for performance and does not require skeleton classes. (Note that some alternate implementations, such as BEA Weblogic and NinjaRMI do not use JRMP, but instead use their own wire level protocol. ObjectSpace's Voyager does recognize JRMP and will interoperate with RMI at the wire level.) Some other changes with the Java 2 SDK are that RMI service interfaces are not required to extend from java.rmi.Remote and their service methods do not necessarily throw RemoteException.
Sun and IBM have jointly worked on the next version of RMI, called RMI-IIOP, which will be available with Java 2 SDK Version 1.3. The interesting thing about RMI-IIOP is that instead of using JRMP, it will use the Object Management Group (OMG) Internet Inter-ORB Protocol, IIOP, to communicate between clients and servers.

Long story short: If you use the RMI provided by Sun in the standard JDK, then you will be using JRMP. If you use another vendors RMI then you will fail on two counts: one for not using Sun standard APIs, and two for not using JRMP.
Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Max Habibi
town drunk
( and author)

Joined: Jun 27, 2002
Posts: 4118
Hi Gy Gy,
Welcome to the ranch. Please take a minute and read over our naming policy page, and adjust your screen name accordingly.

Java Regular Expressions
I agree. Here's the link:
subject: NX:Rmi Help SOS
jQuery in Action, 3rd edition