File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Paul Simon Connolly
Greenhorn
Posts: 7
IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Simon Connolly
Greenhorn
Posts: 7
IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1557
5
Eclipse IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic