Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modular RMI design

 
Matt Kim
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I'm faily new to java and I don't have any formal training in Software Engineering so here's my question to you.
I'm looking into designing a modular application (nothing complex). How extreme would you recommend in modularizing the app? For instance, if I had the following components within an app:
InventoryManager.java
DeliveryManager.java
SiteManager.java
OrderManager.java
If one class required the other, should they be "passed" into one another i.e.
InventoryManager inventoryManager = new InventoryManager(orderManager);
Or should they be discussing over an RMI connection?
Thanks in advance,
Matt
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Welcome to JavaRanch!
Have all the classes in one program. Use RMI only when you have to write two programs and they need to communicate -- for instance, when the two programs have to run on separate machines.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic