JMS
// Create a non-transacted session.
Session sess = connection.createSession(false, Session.AUTO_ACKNOWLEDGE)
// Create a message consumer.
MessageConsumer consumer = sess.createConsumer(topic);
// Wrap the message consumer’s input stream in an audio stream.
AudioStream as = new AudioStream(as);
// Start the audio player.
AudioPlayer.player.start(as);