Without knowing any details JMS based messaging (a service offered by a
JBoss server) seems to be a good idea for this use case. It allows some delivery guarantees for messages (which can contain XML if that's what you need). For example you can implement asynchronous delivery acknowledgement or something like that.
But without any context for your problem this only a guess.
Marco