This page is under construction.
def pool = new JMSPool() pool.send toQueue:'chatService',message:\[user:'groovy100',room:100\],delay:500 //it sends a message in another thread, the delay is avoid getting a result before the subscribed to the topic def result = pool.receive fromTopic:'signedOnBroadcast',messageSelector:"newUser = 'groovy100'" if (result) // you have successfully signed on else // retry? or tell user to sign in again. |
Features that are used across APIs are listed in this section
|
def pool = new JMSPool(maximumPoolSize:10)
10.times{ pool.send toQueue:'testQueue', message:"this is message #$it"}
|
def pool = new JMSPool(maximumPoolSize:10) pool.send toQueue:['queue0', 'queue1'], toTopic:'topic0', message:"a msg for 3 dest", threads:3} // or threads:'auto' |
|