Incorporate XMPP as framework protocol

I’m looking at incorporating real-time communication support, or close to that into a net-centric, agent framework and have been strongly considering XMPP. Since this framework utilizes it’s own container to spawn and manage agents I was thinking that I would embed a lightweight XMPP server into each container to provide the XMPP communications support. I thought about creating agents as components in an XMPP server like OpenFire but there’s lots of complications to doing so.

First, does this, embedding an XMPP server into another container sound feasible? If so, any suggestions on how to go about that? I have looked at vysper (http://cwiki.apache.org/labs/vysper-embed-into-another-application.html) for embedding in a container. Any suggestions from the XMPP experts?