|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.common.T3Connection
A T3Connection object is used to establish communication between a T3Client and a WebLogic Server on a TCP/IP hostname and port number. A T3Connection is the representation of the link between a T3Client and a WebLogic Server.
Changes in internal communications in version 4.0 affected how T3Connection. Socket management is no longer managed by T3Connection (as of version 4.0); now sharing sockets is done automatically for you by the framework. Consequently, the methods in the T3Connection class have been deprecated. In general, the model in which T3Connection was used -- that you supply the URL of a WebLogic Server and get back a connection to the server -- has been made obsolete with the introduction of JNDI and the use of an InitialContext, by which access to all WebLogic services are then acquired without direct reference to any WebLogic Server in particular. This model facilitates cluster use for failover and load balancing.
Removing references to T3Connection is strongly recommended, since the class will not be supported indefinitely. The accessor methods in this class to get information about the connection still work as expected, with some exceptions. For example, if operating in a cluster environment, the accessors will only return information about the original host, port, etc. The isConnected() method always returns true, since there is no longer any real tie between the connection itself and its socket. The disconnect() method may not behave as you expect, since the socket is managed by the framework. Again, we recommend that you upgrade your classes to use the much more flexible JNDI model for access to all WebLogic services.
WLInitialContextFactory
Constructor Summary | |
T3Connection(java.lang.String url)
Deprecated. Use the JNDI model |
|
T3Connection(java.lang.String url,
UserInfo t3usr)
Deprecated. Use the JNDI model |
Method Summary | |
T3Connection |
connect()
Deprecated. Use the JNDI model |
void |
disconnect()
Deprecated. Use the JNDI model |
java.lang.String |
getHost()
Deprecated. Use the JNDI model and its accessors for information about the connection |
java.lang.String |
getPath()
Deprecated. Use the JNDI model and its accessors for information about the connection |
int |
getPort()
Deprecated. Use the JNDI model and its accessors for information about the connection |
java.lang.String |
getProtocol()
Deprecated. Use the JNDI model and its accessors for information about the connection |
java.lang.String |
getQueryParam(java.lang.String key)
Deprecated. Use the JNDI model and its accessors for information about the connection |
java.util.Hashtable |
getQueryParams()
Deprecated. Use the JNDI model and its accessors for information about the connection |
java.lang.String |
getURL()
Deprecated. Use the JNDI model and its accessors for information about the connection |
UserInfo |
getUser()
Deprecated. Use the JNDI model and its accessors for information about the connection |
boolean |
isConnected()
Deprecated. Use the JNDI model |
java.lang.String |
toString()
Deprecated. Information is no longer very useful |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public T3Connection(java.lang.String url) throws java.net.UnknownHostException, java.net.MalformedURLException
URL
- URL for the WebLogic Serverpublic T3Connection(java.lang.String url, UserInfo t3usr) throws java.net.UnknownHostException, java.net.MalformedURLException
URL
- URL for the WebLogic Servert3usr
- A UserInfo with username and credential to provide
access to the WebLogic ServerMethod Detail |
public java.lang.String getHost()
public int getPort()
public java.lang.String getProtocol()
public UserInfo getUser()
public java.lang.String getURL()
public java.lang.String getPath()
public java.util.Hashtable getQueryParams()
public java.lang.String getQueryParam(java.lang.String key)
public boolean isConnected()
public T3Connection connect() throws java.io.IOException, T3Exception
public void disconnect() throws java.io.IOException, T3Exception
public java.lang.String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |