Java developers have a number of choices. Assuming they wish to use Java-RMI rather than xml-rpc as their communication protocol then they can handle the connection to the Plastic hub themselves, or use one of several client libraries to do it for them.

See the code sample here for an example of how to handle everything yourself - be aware that you will need to deal with

  • Hub connection - automatic or user-initiated?
  • Gracefully handling hub-shutdown
  • Informing the hub when you shut down
  • Keeping track of other registered applications and their metadata
  • Responding to the core informational messages.
If all this sounds too much trouble, why not use one of the plastic libraries such as the Plastic Connection Manager or Plaskit? Logo