Share

August 8, 2010

Grails Tipco JMS Hello Message

Grails: 1.3.3
Spring XML in jms.xml
    
        
    

    
        
    

    
        
        
    
Service Class:
class TibJmsService implements IJmsService {

  def JmsTemplate jmsTemplate

  def String startGameSession(Account account, String token) {
    TibjmsMapMessage msg = new TibjmsMapMessage();
    msg.setJMSType("hi")
    jmsTemplate.convertAndSend(msg);
  }
that is it, enjoy