ServerSessionPoolFactory@Deprecated
public interface ServerSessionPoolFactory
| Modifier and Type | Method | Description |
|---|---|---|
javax.jms.ServerSessionPool |
createServerSessionPool(javax.jms.Connection connection,
int sessionsMaximum,
int acknowledgeMode,
boolean transacted,
java.lang.String messageListenerClass,
java.io.Serializable userData) |
Deprecated.
Create a ServerSessionPool which can be used to service
messages sent to a message listener in parallel, by
a pool of ServerSessions.
|
javax.jms.ServerSessionPool |
getServerSessionPool(javax.jms.QueueConnection connection,
int maxSessions,
boolean transacted,
int ackMode,
java.lang.String listenerClassName) |
Deprecated.
Create a ServerSessionPool which can be used to service
messages sent to a message listener in parallel, by
a pool of ServerSessions.
|
javax.jms.ServerSessionPool |
getServerSessionPool(javax.jms.TopicConnection connection,
int maxSessions,
boolean transacted,
int ackMode,
java.lang.String listenerClassName) |
Deprecated.
Create a ServerSessionPool which can be used to service
messages sent to a message listener in parallel, by
a pool of ServerSessions.
|
javax.jms.ServerSessionPool getServerSessionPool(javax.jms.TopicConnection connection,
int maxSessions,
boolean transacted,
int ackMode,
java.lang.String listenerClassName)
throws javax.jms.JMSException
The class listenerClassName may define a constructor which accepts a Session as an argument. The class must be public, and must define a public default constructor.
connection - Connection used to create the JMS SessionmaxSessions - Maximum number of sessions in the pooltransacted - True if the session should be transactedackMode - Acknowledgement mode for message deliverylistenerClassName - Class to be instantiated to receive messagesjavax.jms.JMSException - if a JMS error occursjavax.jms.ServerSessionPool getServerSessionPool(javax.jms.QueueConnection connection,
int maxSessions,
boolean transacted,
int ackMode,
java.lang.String listenerClassName)
throws javax.jms.JMSException
The class listenerClassName may define a constructor which accepts a Session as an argument. The class must be public, and must define a public default constructor.
connection - Connection used to create the JMS SessionmaxSessions - Maximum number of sessions in the pooltransacted - True if the session should be transactedackMode - Acknowledgement mode for message delivery.listenerClassName - Class to be instantiated to receive messagesjavax.jms.JMSException - if a JMS error occursjavax.jms.ServerSessionPool createServerSessionPool(javax.jms.Connection connection,
int sessionsMaximum,
int acknowledgeMode,
boolean transacted,
java.lang.String messageListenerClass,
java.io.Serializable userData)
throws javax.jms.JMSException
The class messageListenerClass may define a constructor which accepts a Session as an argument. The class must be public, and must define a public default constructor. If the userData and the messageListenerClass refers to a class implementing the weblogic.jms.extensions.ServerSessionPoolListener interface, then the userData is passed to the listener for use in the onMessage routine
connection - Connection used to create the JMS SessionsessionsMaximum - Maximum number of sessions in the pooltransacted - True if the session should be transactedacknowledgeMode - Acknowledgement mode for message delivery.messageListenerClass - Class to be instantiated to receive messagesuserData - Serializable client data passed to listenerjavax.jms.JMSException - if a JMS error occursServerSessionPoolListener