public void setJndiReference(String pJndiReference) {
jndiReference = pJndiReference;
}
protected TConnection getTConnection() throws PMException {
TaminoDataSource tds;
try {
InitialContext ic = new InitialContext();
tds = (TaminoDataSource) ic.lookup(jndiReference);
} catch (NamingException e) {
throw new PMException(e);
}
try {
return tds.getConnection();
} catch (TServerNotAvailableException e) {
throw new PMException(e);
}
}