BEA Systems, Inc.

BEA WebLogic Server 9.1 API Reference


weblogic.jms.extensions
Interface WLConnection

All Superinterfaces:
Connection, QueueConnection, TopicConnection

public interface WLConnection
extends QueueConnection, TopicConnection, Connection

A WLConnection provides fields and methods that are not supported by javax.jms.Connection.

See Also:
Connection, QueueConnection, TopicConnection
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Method Summary
 long getReconnectBlockingMillis()
           
 String getReconnectPolicy()
           
 long getTotalReconnectPeriodMillis()
           
 void setReconnectBlockingMillis(long timeout)
           
 void setReconnectPolicy(String reconnectPolicy)
          Control what happens to the connection when the server connection fails.
 void setTotalReconnectPeriodMillis(long timeout)
           
 
Methods inherited from interface javax.jms.QueueConnection
createConnectionConsumer, createQueueSession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer, createTopicSession
 

Method Detail

getReconnectBlockingMillis

public long getReconnectBlockingMillis()
Returns:
return the number of milliseconds JMS operations shall wait trying to reconnect to a disconnected server before throwing a JMSException. When timeout is -1, the call blocks as long as reconnects are possible. For example, send() can block until close() is called, and send() will throw a JMSException.
See Also:
setReconnectBlockingMillis(long)

getReconnectPolicy

public String getReconnectPolicy()
Returns:
Return the current reconnectPolicy.
See Also:
setReconnectPolicy(java.lang.String)

getTotalReconnectPeriodMillis

public long getTotalReconnectPeriodMillis()
Returns:
return the number of milliseconds JMS operations shall wait trying timeout is the number of milliseconds JMS reconnect timers will be permitted to reconnect a disconnected server.
See Also:
setTotalReconnectPeriodMillis(long)

setReconnectBlockingMillis

public void setReconnectBlockingMillis(long timeout)
                                throws IllegalArgumentException
Parameters:
timeout - timeout is the number of milliseconds JMS operations shall wait trying to reconnect to a disconnected server before throwing a JMSException.

When timeout is zero, the reconnect starts but this call does not block waiting for the reconnected objects.

When timeout is -1, the call blocks as long as reconnects are possible. For example, send() can block until close() is called, and send() will throw a JMSException.

Throws:
IllegalArgumentExcaption - is thrown when timeout is less than -1.
IllegalArgumentException
See Also:
getReconnectBlockingMillis()

setReconnectPolicy

public void setReconnectPolicy(String reconnectPolicy)
                        throws IllegalArgumentException
Control what happens to the connection when the server connection fails. weblogic.jms.common.JMSConstants.RECONNECT_POLICY_NONE prevents reconnection.

Throws:
IllegalArgumentException - when the argument is not: weblogic.jms.common.JMSConstants.RECONNECT_POLICY_NONE weblogic.jms.common.JMSConstants.RECONNECT_POLICY_PRODUCER weblogic.jms.common.JMSConstants.RECONNECT_POLICY_ALL
See Also:
weblogic.jms.common.JMSConstants.RECONNECT_POLICY_NONE, weblogic.jms.common.JMSConstants.RECONNECT_POLICY_PRODUCER, weblogic.jms.common.JMSConstants.RECONNECT_POLICY_ALL

setTotalReconnectPeriodMillis

public void setTotalReconnectPeriodMillis(long timeout)
                                   throws IllegalArgumentException
Parameters:
timeout - timeout is the number of milliseconds JMS reconnect timers will be permitted to reconnect a disconnected server.

When timeout is -1, there is no limit. Reconnection timers will always be scheduled until close() is called.

Throws:
IllegalArgumentExcaption - is thrown when timeout is less than -1.
IllegalArgumentException
See Also:
getTotalReconnectPeriodMillis()

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