Change org.apache.activemq.jms.pool.XaPooledConnectionFactory#tmFromJndi parameter to Boolean for JCA validation

This commit is contained in:
Tomasz Adamski 2018-07-11 21:01:30 +02:00 committed by Christopher L. Shannon (cshannon)
parent b3386c8ac7
commit 300d0b9e83
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class XaPooledConnectionFactory extends PooledConnectionFactory implement
private static final long serialVersionUID = -6545688026350913005L; private static final long serialVersionUID = -6545688026350913005L;
private TransactionManager transactionManager; private TransactionManager transactionManager;
private boolean tmFromJndi = false; private Boolean tmFromJndi = false;
private String tmJndiName = "java:/TransactionManager"; private String tmJndiName = "java:/TransactionManager";
public TransactionManager getTransactionManager() { public TransactionManager getTransactionManager() {
@ -129,7 +129,7 @@ public class XaPooledConnectionFactory extends PooledConnectionFactory implement
this.tmJndiName = tmJndiName; this.tmJndiName = tmJndiName;
} }
public boolean isTmFromJndi() { public Boolean isTmFromJndi() {
return tmFromJndi; return tmFromJndi;
} }
@ -138,7 +138,7 @@ public class XaPooledConnectionFactory extends PooledConnectionFactory implement
* *
* @param tmFromJndi * @param tmFromJndi
*/ */
public void setTmFromJndi(boolean tmFromJndi) { public void setTmFromJndi(Boolean tmFromJndi) {
this.tmFromJndi = tmFromJndi; this.tmFromJndi = tmFromJndi;
} }
} }