public class JmsServerSessionPool extends Object implements ServerSessionPool
Constructor and Description |
---|
JmsServerSessionPool(JmsActivation activation)
Create a new session pool
|
Modifier and Type | Method and Description |
---|---|
JmsActivation |
getActivation() |
ServerSession |
getServerSession()
Return a server session from the pool.
|
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 ServerSession getServerSession() throws JMSException
ServerSessionPool
getServerSession
in interface ServerSessionPool
JMSException
- if an application server fails to
return a ServerSession
out of its
server session pool.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 © 2018 JBoss by Red Hat. All rights reserved.