TibcoEMS typical code snippet

==sending out message===============

factory = new TibjmsTopicConnectionFactory(Constants.url);

connection = factory.createTopicConnection(Constants.user, Constants.pass);

session = connection.createTopicSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);

topic = session.createTopic(Constants.topic);

publisher = session.createPublisher(topic);

TextMessage message = session.createTextMessage();

message.setText(messageStr);

publisher.send(message);

================================

 

你可能感兴趣的:(jms)