Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Groovy Jabber-RPC

Jabber-RPC making XML-RPC calls using the Jabber protocol. Groovy has a Jabber-RPC implementation which allows you to create a local Jabber-RPC server and to make calls on remote Jabber-RPC servers. Jabber servers are widely available and very easy to set up and run. The Google GTalk service uses Jabber the Groovy Jabber-RPC package works over GTalk.
We use the excellent Smack Jabber library from Jive Software to handle the protocol details.

The Server

It's really easy to set up a server which provides a set of remotely callable functions.

  1. Create a server object
  2. Add some methods
  3. Start the server
  4. You're done!

The Client

It's pretty easy to make the remote calls too

  1. Create a proxy object to represent the remote server
  2. Call the remote method via the proxy
  3. If and yServerId@gexample.orgare buddies then the call will be made and the result returned
  • No labels