public class JdbcFacade extends JndiBase implements HasPhysicalDestination, IXAEnabled, HasStatistics
The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException at oracle.jdbc.xa.OracleXAResource.recover(OracleXAResource.java:508)
HasStatistics.Action
Constructor and Description |
---|
JdbcFacade() |
Modifier and Type | Method and Description |
---|---|
void |
configure() |
String |
getAuthAlias() |
Connection |
getConnection()
Obtains a connection to the datasource.
|
Connection |
getConnectionWithTimeout(int timeout) |
protected DataSource |
getDatasource() |
String |
getDatasourceInfo() |
String |
getDatasourceName() |
IDbmsSupport |
getDbmsSupport() |
protected String |
getLogPrefix() |
protected String |
getPassword() |
String |
getPhysicalDestinationName()
Returns the name and location of the database that this objects operates on.
|
String |
getUsername() |
boolean |
isConnectionsArePooled() |
boolean |
isTransacted()
indicates implementing object is under transaction control, using XA-transactions
|
void |
iterateOverStatistics(StatisticsKeeperIterationHandler hski,
Object data,
HasStatistics.Action action) |
void |
setAuthAlias(String authAlias)
Authentication alias used to authenticate when connecting to database
|
void |
setConnectionsArePooled(boolean b)
informs the sender that the obtained connection is from a pool (and thus connections are reused and never closed)
|
void |
setDatasourceName(String datasourceName)
JNDI name of datasource to be used, can be configured via jmsRealm, too
|
void |
setDbmsSupportFactory(IDbmsSupportFactory dbmsSupportFactory) |
void |
setJmsRealm(String jmsRealmName)
Deprecated.
|
void |
setPassword(String password)
Password for authentication when connecting to database, when none found from
authAlias |
void |
setTransacted(boolean transacted)
controls the use of transactions
|
void |
setUsername(String username)
User name for authentication when connecting to database, when none found from
authAlias |
close, getContext, getJndiEnv, setAuthentication, setCredentials, setInitialContextFactoryName, setJndiAuthAlias, setJndiContextPrefix, setJndiProperties, setName, setPrincipal, setProviderURL, setSecurityProtocol, setUrlPkgPrefixes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDomain
getName
getApplicationContext, getName
getConfigurationClassLoader
protected String getLogPrefix()
public void configure() throws ConfigurationException
configure
in interface IConfigurable
configure
in class JndiBase
ConfigurationException
protected DataSource getDatasource() throws JdbcException
JdbcException
public String getDatasourceInfo() throws JdbcException
JdbcException
public void setDbmsSupportFactory(IDbmsSupportFactory dbmsSupportFactory)
public IDbmsSupport getDbmsSupport()
public Connection getConnection() throws JdbcException
JdbcException
public Connection getConnectionWithTimeout(int timeout) throws JdbcException, TimeoutException
JdbcException
TimeoutException
public void iterateOverStatistics(StatisticsKeeperIterationHandler hski, Object data, HasStatistics.Action action) throws SenderException
iterateOverStatistics
in interface HasStatistics
SenderException
@Deprecated @ConfigurationWarning(value="We discourage the use of jmsRealms for datasources. To specify a datasource other then the default, use the datasourceName attribute directly, instead of referring to a realm") public void setJmsRealm(String jmsRealmName)
JndiBase
setJmsRealm
in class JndiBase
JmsRealm
public String getPhysicalDestinationName()
getPhysicalDestinationName
in interface HasPhysicalDestination
HasPhysicalDestination.getPhysicalDestinationName()
public void setDatasourceName(String datasourceName)
public String getDatasourceName()
public void setAuthAlias(String authAlias)
public String getAuthAlias()
public void setUsername(String username)
authAlias
public String getUsername()
public void setPassword(String password)
authAlias
protected String getPassword()
public void setTransacted(boolean transacted)
public boolean isTransacted()
IXAEnabled
isTransacted
in interface IXAEnabled
public void setConnectionsArePooled(boolean b)
public boolean isConnectionsArePooled()
Copyright © 2023 Frank!Framework. All rights reserved.