org.exolab.jmscts.jms.asf
Class BasicServerSession
java.lang.Object
|
+--org.exolab.jmscts.jms.asf.BasicServerSession
- All Implemented Interfaces:
- javax.jms.ServerSession
- public class BasicServerSession
- extends java.lang.Object
- implements javax.jms.ServerSession
Implementation of the javax.jms.ServerSession interface.
- Version:
- $Revision: 1.2 $ $Date: 2004/02/02 03:49:55 $
- Author:
- Tim Anderson
Method Summary |
void |
close()
Close the server session |
javax.jms.Session |
getSession()
Return the server session's session |
void |
start()
Cause the session's run method to be called to process messages that
were just assigned to it |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicServerSession
public BasicServerSession(BasicServerSessionPool pool,
javax.jms.Session session)
throws javax.jms.JMSException
- Construct a new
BasicServerSession
- Parameters:
pool
- the pool which manages thissession
- the underlying session- Throws:
javax.jms.JMSException
- for any error
getSession
public javax.jms.Session getSession()
- Return the server session's session
- Specified by:
getSession
in interface javax.jms.ServerSession
- Returns:
- the server session's session
close
public void close()
throws javax.jms.JMSException
- Close the server session
- Throws:
javax.jms.JMSException
- if the underlying session can't be closed
start
public void start()
throws javax.jms.JMSException
- Cause the session's run method to be called to process messages that
were just assigned to it
- Specified by:
start
in interface javax.jms.ServerSession
- Throws:
javax.jms.JMSException
- if JMS fails to start the server session to
process messages
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.