Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.jms
Interface ServerSessionPoolFactory

All Known Subinterfaces:
ServerSessionPoolFactory

Deprecated. Deprecated in WebLogic Server 8.1. Replaced by ServerSessionPoolFactory in weblogic.jms.extensions

public interface ServerSessionPoolFactory

Method Summary
abstract  ServerSessionPool createServerSessionPool(Connection connection, int sessionsMaximum, int acknowledgeMode, boolean transacted, String messageListenerClass, 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.
abstract  ServerSessionPool getServerSessionPool(QueueConnection connection, int maxSessions, boolean transacted, int ackMode, 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.
abstract  ServerSessionPool getServerSessionPool(TopicConnection connection, int maxSessions, boolean transacted, int ackMode, 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.

 

Method Detail

getServerSessionPool

ServerSessionPool getServerSessionPool(TopicConnection connection,
                                       int maxSessions,
                                       boolean transacted,
                                       int ackMode,
                                       String listenerClassName)
                                       throws JMSException
Deprecated. 
Create a ServerSessionPool which can be used to service messages sent to a message listener in parallel, by a pool of ServerSessions.

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.

Parameters:
connection - Connection used to create the JMS Session
maxSessions - Maximum number of sessions in the pool
transacted - True if the session should be transacted
ackMode - Acknowledgement mode for message delivery
listenerClassName - Class to be instantiated to receive messages
Throws:
JMSException - if a JMS error occurs

getServerSessionPool

ServerSessionPool getServerSessionPool(QueueConnection connection,
                                       int maxSessions,
                                       boolean transacted,
                                       int ackMode,
                                       String listenerClassName)
                                       throws JMSException
Deprecated. 
Create a ServerSessionPool which can be used to service messages sent to a message listener in parallel, by a pool of ServerSessions.

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.

Parameters:
connection - Connection used to create the JMS Session
maxSessions - Maximum number of sessions in the pool
transacted - True if the session should be transacted
ackMode - Acknowledgement mode for message delivery.
listenerClassName - Class to be instantiated to receive messages
Throws:
JMSException - if a JMS error occurs

createServerSessionPool

ServerSessionPool createServerSessionPool(Connection connection,
                                          int sessionsMaximum,
                                          int acknowledgeMode,
                                          boolean transacted,
                                          String messageListenerClass,
                                          Serializable userData)
                                          throws JMSException
Deprecated. 
Create a ServerSessionPool which can be used to service messages sent to a message listener in parallel, by a pool of ServerSessions.

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

Parameters:
connection - Connection used to create the JMS Session
sessionsMaximum - Maximum number of sessions in the pool
transacted - True if the session should be transacted
acknowledgeMode - Acknowledgement mode for message delivery.
messageListenerClass - Class to be instantiated to receive messages
userData - Serializable client data passed to listener
Throws:
JMSException - if a JMS error occurs
See Also:
ServerSessionPoolListener

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09