|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)
This class represents a JMS session pool, a server-managed pool of server sessions that enables an application to process messages concurrently.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX"
on http://www.oracle.com/technology/documentation/index.html.
Field Summary |
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
boolean |
addConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer)
Deprecated. 9.0.0.0 Replaced with message-driven beans. |
JMSConnectionConsumerMBean |
createJMSConnectionConsumer(String name)
Deprecated. The connection consumers for this JMS session pool. |
void |
destroyJMSConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer)
Deprecated. Remove a connection consumer from the session pool. |
String |
getAcknowledgeMode()
Deprecated. The acknowledge mode used by non-transacted sessions within this JMS session pool. |
JMSConnectionConsumerMBean[] |
getConnectionConsumers()
Deprecated. 9.0.0.0 Replaced with message-driven beans. |
String |
getConnectionFactory()
Deprecated. The JNDI name of the connection factory for this JMS session pool. |
JMSConnectionConsumerMBean[] |
getJMSConnectionConsumers()
Deprecated. The connection consumers for this JMS session pool. |
String |
getListenerClass()
Deprecated. The name of the server-side listener class for this JMS session pool, which is used to receive and process messages concurrently. |
int |
getSessionsMaximum()
Deprecated. The maximum number of sessions allowed for this JMS session pool. |
boolean |
isTransacted()
Deprecated. Indicates whether this JMS session pool creates transacted sessions. |
JMSConnectionConsumerMBean |
lookupJMSConnectionConsumer(String name)
Deprecated. Get a connection consumer from the session pool by name. |
boolean |
removeConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer)
Deprecated. 9.0.0.0 Replaced with message-driven beans. |
void |
setAcknowledgeMode(String acknowledgeMode)
Deprecated. Sets the value of the AcknowledgeMode attribute. |
void |
setConnectionConsumers(JMSConnectionConsumerMBean[] consumers)
Deprecated. 9.0.0.0 Replaced with message-driven beans. |
void |
setConnectionFactory(String connectionFactory)
Deprecated. Sets the value of the ConnectionFactory attribute. |
void |
setListenerClass(String name)
Deprecated. Sets the value of the ListenerClass attribute. |
void |
setSessionsMaximum(int maxSessions)
Deprecated. Sets the value of the SessionsMaximum attribute. |
void |
setTransacted(boolean transacted)
Deprecated. Sets the value of the Transacted attribute. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Method Detail |
public boolean addConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer) throws InvalidAttributeValueException, weblogic.management.DistributedManagementException
Add a connection consumer to the session pool. This method is provided for backward compatibility.
connectionConsumer
- the connection consumer to add
InvalidAttributeValueException
weblogic.management.DistributedManagementException
public JMSConnectionConsumerMBean createJMSConnectionConsumer(String name) throws InvalidAttributeValueException, weblogic.management.DistributedManagementException
The connection consumers for this JMS session pool. JMS connection consumers are queues (Point-To-Point) or topics (Pub/Sub) that retrieve server sessions and process messages. Once you have defined a session pool, you can configure one or more connection consumers for each session pool.
Create a connection consumer for the session pool.
name
- the name of the connection consumer to create
InvalidAttributeValueException
weblogic.management.DistributedManagementException
public void destroyJMSConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer)
Remove a connection consumer from the session pool.
connectionConsumer
- a reference to JMSConnectionConsumerMBeanpublic String getAcknowledgeMode()
The acknowledge mode used by non-transacted sessions within this JMS session pool.
For transacted sessions, messages are acknowledged automatically when the session is committed and this value is ignored.
public JMSConnectionConsumerMBean[] getConnectionConsumers()
The connection consumers for this JMS session pool. JMS connection consumers are queues (Point-To-Point) or topics (Pub/Sub) that retrieve server sessions and process messages. Once you have defined a session pool, you can configure one or more connection consumers for each session pool. This method is provided for backward compatibility.
public String getConnectionFactory()
The JNDI name of the connection factory for this JMS session pool. Connection factories are used to create connections with predefined attributes.
public JMSConnectionConsumerMBean[] getJMSConnectionConsumers()
The connection consumers for this JMS session pool. JMS connection consumers are queues (Point-To-Point) or topics (Pub/Sub) that retrieve server sessions and process messages. Once you have defined a session pool, you can configure one or more connection consumers for each session pool.
public String getListenerClass()
The name of the server-side listener class for this JMS session pool, which is used to receive and process messages concurrently.
public int getSessionsMaximum()
The maximum number of sessions allowed for this JMS session
pool. A value of -1
indicates that there is no
maximum.
This attribute is dynamically configurable; however, it does not take effect until the session pool is restarted.
public boolean isTransacted()
Indicates whether this JMS session pool creates transacted sessions.
public JMSConnectionConsumerMBean lookupJMSConnectionConsumer(String name)
public boolean removeConnectionConsumer(JMSConnectionConsumerMBean connectionConsumer) throws InvalidAttributeValueException, weblogic.management.DistributedManagementException
Remove a connection consumer from the session pool. This method is provided for backward compatibility.
connectionConsumer
- a reference to JMSConnectionConsumerMBean
InvalidAttributeValueException
weblogic.management.DistributedManagementException
public void setAcknowledgeMode(String acknowledgeMode) throws InvalidAttributeValueException
Sets the value of the AcknowledgeMode attribute.
acknowledgeMode
- The new acknowledgeMode value
InvalidAttributeValueException
getAcknowledgeMode()
public void setConnectionConsumers(JMSConnectionConsumerMBean[] consumers) throws InvalidAttributeValueException
The connection consumers for this JMS session pool. JMS connection consumers are queues (Point-To-Point) or topics (Pub/Sub) that retrieve server sessions and process messages. Once you have defined a session pool, you can configure one or more connection consumers for each session pool. This method is provided for backward compatibility.
InvalidAttributeValueException
public void setConnectionFactory(String connectionFactory) throws InvalidAttributeValueException
Sets the value of the ConnectionFactory attribute.
connectionFactory
- The new connectionFactory value
InvalidAttributeValueException
getConnectionFactory()
public void setListenerClass(String name) throws InvalidAttributeValueException
Sets the value of the ListenerClass attribute.
name
- The new listenerClass value
InvalidAttributeValueException
getListenerClass()
public void setSessionsMaximum(int maxSessions) throws InvalidAttributeValueException, weblogic.management.DistributedManagementException
Sets the value of the SessionsMaximum attribute.
maxSessions
- The new sessionsMaximum value
InvalidAttributeValueException
weblogic.management.DistributedManagementException
getSessionsMaximum()
public void setTransacted(boolean transacted) throws InvalidAttributeValueException
Sets the value of the Transacted attribute.
transacted
- The new transacted value
InvalidAttributeValueException
isTransacted()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |