BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


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

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Method Summary
 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.
 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.
 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

createServerSessionPool

public 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 listenerClassName 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 clientData and the listenerClassName refers to a class implementing the weblogic.jms.extensions.ServerSessionPoolListener interface, then the clientData is passed to the listener for use in the onMessage routine

Parameters:
connection - Connection used to create the JMS Session
transacted - True if the session should be transacted
Throws:
JMSException - if a JMS error occurs
See Also:
ServerSessionPoolListener

getServerSessionPool

public 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

getServerSessionPool

public 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

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs91
Copyright 2005 BEA Systems Inc.