This week, work asked me to build an admin tool that could listen in on the messages of a jms topic, record them and output them in a web page.
I thought Grails with the help of the wonderful JMS plugin had the potential to deliver exactly what I needed.
The examples were great, but didn't deal with EMS, only activeMQ, Googling came up with nothing. So, I thought I'd make a note of how I finally got it working with Tibco.
Firstly, I followed the JMS plugin notes here, then I grabbed a copy of tibjms.jar and placed it in the grails app lib directory.
Finally, I placed the following code in resources.groovy:
beans = { connectionFactory(com.tibco.tibjms.TibjmsConnectionFactory) { userName = 'blah' userPassword = 'blah' serverUrl = 'tcp://server1:7019,server2:7019' } }
And Bob is indeed my uncle, I have a grails app talking to a Tibco EMS. I got the messages saved via GORM and used the scaffolding feature to give me an auto-generated application based around the GORM domain classes. It couldn't have been easier.
Recent Comments