public class JmsServerSessionPool extends Object implements javax.jms.ServerSessionPool
Constructor and Description |
---|
JmsServerSessionPool(JmsActivation activation)
Create a new session pool
|
Modifier and Type | Method and Description |
---|---|
JmsActivation |
getActivation() |
javax.jms.ServerSession |
getServerSession() |
protected void |
returnServerSession(JmsServerSession session)
Return the server session
|
protected void |
setupConsumer()
Setup the connection consumer
|
protected void |
setupSessions()
Setup the sessions
|
void |
start()
Start the server session pool
|
void |
stop()
Stop the server session pool
|
protected void |
teardownConsumer()
Stop the connection consumer
|
protected void |
teardownSessions()
Stop the sessions
|
public JmsServerSessionPool(JmsActivation activation)
activation
- the jms activationpublic JmsActivation getActivation()
public void start() throws Exception
Exception
- for any errorpublic void stop()
public javax.jms.ServerSession getServerSession() throws javax.jms.JMSException
getServerSession
in interface javax.jms.ServerSessionPool
javax.jms.JMSException
protected void returnServerSession(JmsServerSession session)
session
- the sessionprotected void setupSessions() throws Exception
Exception
- for any errorprotected void teardownSessions()
protected void setupConsumer() throws Exception
Exception
- for any errorprotected void teardownConsumer()
Copyright © 2017 JBoss by Red Hat. All rights reserved.