There is a message(text), which format and content i definitely know.
For now,class in Java,that parses and reads this message from file,is implemented.
If you use Spring Integration, you can do this pretty easily. It has a very basic, abstract "Channel" implementation. You can create and test your producers and consumers, and when you're ready to move a step further, you just specify a JMS adapter on top of your Channel.