| |
|
| java.lang.Object org.mockejb.jms.MockSession
All known Subclasses: org.mockejb.jms.TopicSessionImpl, org.mockejb.jms.QueueSessionImpl,
MockSession | abstract class MockSession implements Session(Code) | | Represents session with MockEjb JMS provider.
Currently contains common methods for QueueSession and
TopicSession
author: Dimitar Gospodinov |
MockSession | public MockSession(boolean transacted, int acknowledgeMode, MockConnection connection)(Code) | | Creates new session with the specified attributes, for connection connection
Parameters: transacted - Parameters: acknowledgeMode - Parameters: connection - |
checkClosed | protected void checkClosed() throws javax.jms.IllegalStateException(Code) | | Checks if this session has been closed and if yes throws
IllegalStateException
throws: javax.jms.IllegalStateException - if this session has been closed |
close | public void close() throws JMSException(Code) | | Closes this session. Any further operation, except close , on
this session will result in IllegalStateException
throws: JMSException - See Also: javax.jms.Session.close |
commit | public void commit() throws JMSException(Code) | | Not implemented.
throws: JMSException - See Also: javax.jms.Session.commit |
consumeMessages | void consumeMessages() throws JMSException(Code) | | |
createBytesMessage | public BytesMessage createBytesMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createBytesMessage |
createConsumer | public MessageConsumer createConsumer(Destination destination) throws JMSException(Code) | | Creates message consumer for the specified destination.
Parameters: destination - throws: JMSException - |
createConsumer | public MessageConsumer createConsumer(Destination destination, java.lang.String messageSelector) throws JMSException(Code) | | Not implemented.
throws: JMSException - |
createConsumer | public MessageConsumer createConsumer(Destination destination, java.lang.String messageSelector, boolean NoLocal) throws JMSException(Code) | | Not implemented.
throws: JMSException - |
createMapMessage | public MapMessage createMapMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createMapMessage |
createMessage | public Message createMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createMessage |
createObjectMessage | public ObjectMessage createObjectMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createObjectMessage |
createObjectMessage | public ObjectMessage createObjectMessage(Serializable object) throws JMSException(Code) | | Creates ObjectMessage initialized with the
specified serialized object.
throws: JMSException - |
createProducer | public MessageProducer createProducer(Destination destination) throws JMSException(Code) | | Creates message producer for the specified destination.
|
createStreamMessage | public StreamMessage createStreamMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createStreamMessage |
createTextMessage | public TextMessage createTextMessage() throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createTextMessage |
createTextMessage | public TextMessage createTextMessage(String text) throws JMSException(Code) | | throws: JMSException - See Also: javax.jms.Session.createTextMessage(String) |
getAcknowledgeMode | public int getAcknowledgeMode() throws JMSException(Code) | | Gets session acknowledge mode.
session acknowledge mode throws: JMSException - |
getMessageListener | public MessageListener getMessageListener() throws JMSException(Code) | | Not implemented.
throws: JMSException - See Also: javax.jms.Session.getMessageListener |
getTransacted | public boolean getTransacted() throws JMSException(Code) | | Gets session transacted property.
true if session is transacted or false if not throws: JMSException - See Also: javax.jms.Session.getTransacted |
isClosed | protected boolean isClosed()(Code) | | Gets session closed status.
true if this session has been closed, or false if not. |
recover | public void recover() throws JMSException(Code) | | Not implemented.
throws: JMSException - See Also: javax.jms.Session.recover |
rollback | public void rollback() throws JMSException(Code) | | Not implemented.
throws: JMSException - See Also: javax.jms.Session.rollback |
run | public void run()(Code) | | Not implemented.
|
setMessageListener | public void setMessageListener(MessageListener listener) throws JMSException(Code) | | Not implemented.
throws: JMSException - See Also: javax.jms.Session.setMessageListener(javax.jms.MessageListener) |
|
|
|