Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External XMPP component - Anyone know a Tutorial or Open Source Example please?

Tags:

java

xmpp

whack

I want to run an XMPP server (Openfire) and register an external component to handle the messages it will recieve (using the Whack library). The external component will run my game logic and I will be using XMPP to send player moves to the server and status updates in the other direction. The bonus with XMPP is that we get built in chat for free.

The trouble is, although Ignite look fairly established, I can't find a tutorial on how to write, register and debug an External XMPP component written with Whack, there are very few in general for that matter.

I am not invested in either the server implementation or the External Component library, java is just my language of choice. If I was to move to Erlang or Scala or something it would have to be a very simple in that language.

A single tutorial or example would go a long way here, I just need an basic External XMPP component pretty please!

Kind regards,

Gavin

like image 616
gav Avatar asked Mar 11 '10 18:03

gav


2 Answers

I found this tutorial which explains how an external component can be implemented using the Whack library.

like image 140
stacker Avatar answered Oct 29 '22 12:10

stacker


There are a few examples/tutorials for related XMPP libraries like Tinder and Smack which you may find useful.

Or, in a rather different vein, you could decide to be protocol-agnostic and use IMified's API, in which they host the "chatbot" (as it were) which connects with your simple HTTP-based response server built in whatever language/framework/whatever you prefer. (They do a lot better explaining it than I do.)

like image 39
ewall Avatar answered Oct 29 '22 11:10

ewall