• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implementation of remote/local mode communication

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic