1 46 package org.mr.api.jms; 47 48 import javax.jms.TopicSession ; 49 50 import javax.jms.JMSException ; 51 52 53 import java.io.Serializable ; 54 55 56 76 public class MantaTopicConnection extends MantaConnection implements Serializable , javax.jms.TopicConnection { 77 78 85 MantaTopicConnection(MantaConnectionFactory factory) throws JMSException { 86 super(factory); 87 } 89 98 MantaTopicConnection(MantaConnectionFactory factory, String userName, String password) throws JMSException { 99 super(factory,userName, password); 100 } 102 105 public TopicSession createTopicSession (boolean trx, int acknowledgeMode) throws JMSException { 106 107 checkLegalOperation(); 108 109 MantaTopicSession sess = new MantaTopicSession(messageChannel.getMessageId(),this, 110 trx,acknowledgeMode); 111 112 addSession(sess); 113 return sess; 114 } 115 } | Popular Tags |