The CloudTurbine demo app “CTjms.java” demonstrates how JMS messaging can connect to/from CT data.  See the App documentation:

http://www.cloudturbine.com/ctjms-jms-messaging-example/