|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.common.T3Connection
public final class 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(String url)
Deprecated. Use the JNDI model |
|
T3Connection(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 |
String |
getHost()
Deprecated. Use the JNDI model and its accessors for information about the connection |
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 |
String |
getProtocol()
Deprecated. Use the JNDI model and its accessors for information about the connection |
String |
getQueryParam(String key)
Deprecated. Use the JNDI model and its accessors for information about the connection |
Hashtable |
getQueryParams()
Deprecated. Use the JNDI model and its accessors for information about the connection |
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 |
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(String url) throws UnknownHostException, MalformedURLException
url
- URL for the WebLogic Server
UnknownHostException
- if the URL for the WebLogic Server is not found
MalformedURLException
public T3Connection(String url, UserInfo t3usr) throws UnknownHostException, MalformedURLException
url
- URL for the WebLogic Servert3usr
- A UserInfo with username and credential to provide
access to the WebLogic Server
UnknownHostException
- if the URL is not found
MalformedURLException
- if the URL for the WebLogic Server is invalidMethod Detail |
---|
public String getHost()
public int getPort()
public String getProtocol()
public UserInfo getUser()
public String getURL()
public String getPath()
public Hashtable getQueryParams()
public String getQueryParam(String key)
public boolean isConnected()
public T3Connection connect() throws IOException
IOException
- if an IO error occurs
T3Exception
- if there is an error with the connect requestpublic void disconnect() throws IOException
IOException
- if an IO error occurs
T3Exception
- if there is an error with the disconnect requestpublic String toString()
toString
in class Object
|
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 Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |