Best way of deploying an external XMPP component?

I’m looking at creating an external XMPP component with Whack and looking through the examples. Is there a recommended way of deploying an external component? The example is a standalone Java process but I don’t know if this is simply for the sake of not distracting from the code in the example.

Thanks,

Michael