Using a message queue to transmit objects