Messaging and document replication using JMS