/* start the connection */
tc.start();
/* Create the receivers */
TopicSubscriber ts1 = s_rec1.createSubscriber(t, "size >= 5 OR (size < 5 AND color ='green')", false);
TopicSubscriber ts2 = s_rec1.createSubscriber(t);
TopicSubscriber ts3 = s_rec2.createSubscriber(t);
/* Create a sender for sending messages */
TopicPublisher tpub = s_send.createPublisher(t);
/* create a message for sending */
Message msg = s_send.createObjectMessage(new Integer(1));
msg.setIntProperty("size", 2);