File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes OCMJD - Is connecting to the server running on another machine? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "OCMJD - Is connecting to the server running on another machine?" Watch "OCMJD - Is connecting to the server running on another machine?" New topic
Author

OCMJD - Is connecting to the server running on another machine?

Paul Simon Connolly
Greenhorn

Joined: May 06, 2013
Posts: 7

Hi All,

I've got my project (codewise) finished (URLyBird 1.3.2), just tidying up the javadoc and fixing a few small PMD issues.
I've been reading how people have been running the server on another machine and connecting remotely from another machine.
My question is "Is this required?"

The requirements state for 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)



Kind Regards,
Paul


Certifications: OCPJP 6 (98%)
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Well champion, yes... since it is a server. The idea is that you can start an RMI application that listens to requests on a specific port, and connect to this server in this specific port. This means that you cannot use an HTTP server, such as Tomcat, Glassfish, JBoss, etc. That's pretty much it.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Paul Simon Connolly
Greenhorn

Joined: May 06, 2013
Posts: 7

Cheers Buddy!
I must explain my reasons for asking the question.
I was testing it across my personal laptop and my work laptop but it wouldn't work (My work laptop has a ridiculous amount of security on it).

One of my mates called over with his personal laptop an hour ago and we tried it and it works perfectly!
Going to submit it this weekend!
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Howdy, partner!

Well champion, if you tried to have your client connect to your server over a network, didn't use an HTTP server and didn't use IIOP, then I'd say you're good to go! My wishes of good luck to you, champion!
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

Hi Paul,

Welcome to CodeRanch!

I don't remember exactly, but there is some mention in the requirement that the test machines won't be having extra security (or something like that).

In my case, I worked on a Linux distro, and while testing, I disabled SELinux module (Security Enhanced Linux). I didn't even tested it with SELinux.

However, in choices.txt (or the file where you mention OS and Java details), I specifically mentioned that this code has been tested on <Linux distro name and version>, <Java version> with SELinux disabled.

I didn't face any issue during the exam.

Also, I think Andrew Monkhouse's book discusses this issue (i.e. sometimes, RMI fails when MS Windows firewall is active).

I'm not sure on which OS you are testing, but as your testing is successful, please mention the configuration in your documentation (i.e. which OS was used for testing, what were the security settings and so on) and you should be good.

All the Best!


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
 
 
subject: OCMJD - Is connecting to the server running on another machine?
 
Similar Threads
rmic unnecessary for SCJD project?
nx:URLyBird RMI registry and server startup
RMI questions
How to test network function?
RMI: Stubs & Java 6