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

Implementation of remote/local mode communication

 
James Clinton
Ranch Hand
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Please discuss my implementation of remote/local mode communication.

Currently the way I have implemented this is as follows, the client side filters a request through to a BrokerCommand class which decides

(a) in remote mode, calls a function from the BrokerServices interface, which then calls my Broker Class which calls my data methods (in a nutshell)

or the command class

(b) in local mode, calls the Broker business method directly which then connects to the Data class blah blah..

This results in code (below) in every method in the command class. Its not very elegant:



Is there a better way?

Cheers
James
[ December 15, 2004: Message edited by: James Clinton ]
 
James Clinton
Ranch Hand
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just thought of another option. Have 2 types of command which extend a parent command which can be passed in the GUI on construction.











Please discuss and share your approach/problems/recommendations.

Thanks!
[ December 15, 2004: Message edited by: James Clinton ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic