com.mockrunner.mock.jms
Class MockServerSession

java.lang.Object
  extended by com.mockrunner.mock.jms.MockServerSession
All Implemented Interfaces:
java.io.Serializable, javax.jms.ServerSession

public class MockServerSession
extends java.lang.Object
implements javax.jms.ServerSession, java.io.Serializable

Mock implementation of JMS ServerSession. The ServerSession is not meant for application use.

See Also:
Serialized Form

Constructor Summary
MockServerSession(MockConnection connection)
           
 
Method Summary
 javax.jms.Session getSession()
           
 boolean isStarted()
          Returns if this server session was started.
 void setSession(javax.jms.Session session)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockServerSession

public MockServerSession(MockConnection connection)
Method Detail

isStarted

public boolean isStarted()
Returns if this server session was started.

Returns:
true if this server session is started

setSession

public void setSession(javax.jms.Session session)

getSession

public javax.jms.Session getSession()
                             throws javax.jms.JMSException
Specified by:
getSession in interface javax.jms.ServerSession
Throws:
javax.jms.JMSException

start

public void start()
           throws javax.jms.JMSException
Specified by:
start in interface javax.jms.ServerSession
Throws:
javax.jms.JMSException