1 22 package org.jboss.test.messagedriven.mock; 23 24 import javax.jms.Connection ; 25 import javax.jms.ConnectionConsumer ; 26 import javax.jms.ConnectionMetaData ; 27 import javax.jms.Destination ; 28 import javax.jms.ExceptionListener ; 29 import javax.jms.JMSException ; 30 import javax.jms.ServerSessionPool ; 31 import javax.jms.Session ; 32 import javax.jms.Topic ; 33 34 40 public abstract class JmsMockConnection implements JmsMockObject, Connection , Destination 41 { 42 43 public void close() throws JMSException 44 { 45 47 } 48 49 public ConnectionConsumer createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException 50 { 51 return null; 53 } 54 55 public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException 56 { 57 return null; 59 } 60 61 public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException 62 { 63 return null; 65 } 66 67 public String getClientID() throws JMSException 68 { 69 return null; 71 } 72 73 public ExceptionListener getExceptionListener() throws JMSException 74 { 75 return null; 77 } 78 79 public ConnectionMetaData getMetaData() throws JMSException 80 { 81 return null; 83 } 84 85 public void setClientID(String clientID) throws JMSException 86 { 87 89 } 90 91 public void setExceptionListener(ExceptionListener listener) throws JMSException 92 { 93 95 } 96 97 public void start() throws JMSException 98 { 99 101 } 102 103 public void stop() throws JMSException 104 { 105 107 } 108 109 110 111 } 112 | Popular Tags |