org.mobicents.slee.resource.jdbc.task
Interface JdbcTaskContext


public interface JdbcTaskContext

The context provided by the JDBC RA to a JdbcTask, for its logic execution.

Author:
martins

Method Summary
 java.sql.Connection getConnection()
          Retrieves the connection to be used by the task.
 javax.slee.transaction.SleeTransactionManager getSleeTransactionManager()
          Retrieves the JDBC RA SleeTransactionManager, which a JdbcTask may use to create and manage Java transactions.
 void setConnectionCredentials(java.lang.String username, java.lang.String password)
          Sets the credentials used to retrieve the JDBC Connection.
 

Method Detail

setConnectionCredentials

void setConnectionCredentials(java.lang.String username,
                              java.lang.String password)
Sets the credentials used to retrieve the JDBC Connection. Note these must be set before using JdbcTaskContext getConnection().

Parameters:
username -
password -

getConnection

java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Retrieves the connection to be used by the task. The connection will be closed by the RA once the task execution ends.

Returns:
Throws:
java.sql.SQLException

getSleeTransactionManager

javax.slee.transaction.SleeTransactionManager getSleeTransactionManager()
Retrieves the JDBC RA SleeTransactionManager, which a JdbcTask may use to create and manage Java transactions.

Returns:


Copyright © 2012. All Rights Reserved.