August 2000
Intermediate to advanced
348 pages
8h 51m
English
XADataSource
Interface Name:
javax.sql.XADataSource
Superclass: None
Immediate Subclasses: None
Interfaces Implemented: None
Availability: New as of JDK 1.2
The XADataSource interface is implemented by
classes that provide a JNDI gateway into distributed connections.
public interface XADataSource {
int getLoginTimeout( ) throws java.sql.SQLException;
java.io.PrintWriter getLogWriter( )
throws java.sql.SQLException;
XAConnection getXAConnection( )
throws java.sql.SQLException;
XAConnection getXAConnection(String uid, String pw)
throws java.sql.SQLException;
void setLoginTimeout(int sec)
throws java.sql.SQLException;
void setLogWriter(java.io.PrintWriter lw)
throws java.sql.SQLException;
}public int getLoginTimeout( ) throws java.sql.SQLException; public void setLoginTimeout(int sec) throws java.sql.SQLException;
These methods get and set a connection for the interval that the system will wait to establish before giving up. This value is an interval in seconds. A value of zero directs the data source to depend on the default timeout for the underlying system.
public java.io.PrintWriter getLogWriter( ) throws java.sql.SQLException; public void setLogWriter(java.io.PrintWriter pw) throws java.sql.SQLException;
These methods get and set the print writer to be used for logging events. This character stream is used by all methods in this data source ...
Read now
Unlock full access