5

I'm trying to build an external component for the Openfire XMPP server, but I'm a bit confused between Tinder and Whack. Tinder seems to be the newer library and has the AbstractComponent interface which Ignite Realtime are recommending over the standard Component, however, whenever anyone talks about building an external component, they seem to be using the Whack library.

Should I be using Tinder or Whack? Or a bit of both?

Many thanks

Marc
  • 546
  • 5
  • 10

1 Answers1

2

Tinder utilises the Whack library and wraps the component in an abstract component interface so you don't have to implement all the methods for handling all types of packets if you don't need to.

Have a look at the source for the weather example.

It's also worth looking at the whack source to see how it handles the packets as this is what is ultimately connecting to your server and sending packets.

Personally I use the externalcomponent manager from whack and setup an abstract component using tinder which is exactly what the weatherabstract example does.

That's the best place to start.

James W
  • 410
  • 2
  • 10
  • As the project lead for both Tinder and Whack, I can confirm that James is spot on: use Whack to create an external component. – Guus Nov 12 '13 at 18:27
  • Ha, never noticed THE @Guus commented on my answer, good to know I wasn't spouting BS. I still use the weather example as a starting point for the external components. – James W Feb 08 '15 at 04:18