ARTEMIS-2952 allow protected access to ActiveMQConnectionFactory readOnly

This commit is contained in:
Justin Bertram 2021-02-08 13:15:40 -06:00 committed by Clebert Suconic
parent 017daa90f2
commit f1d5303994
1 changed files with 6 additions and 1 deletions

View File

@ -876,7 +876,7 @@ public class ActiveMQConnectionFactory extends JNDIStorable implements Connectio
final String password,
final boolean isXA,
final int type) throws JMSException {
readOnly = true;
makeReadOnly();
ClientSessionFactory factory;
@ -965,4 +965,9 @@ public class ActiveMQConnectionFactory extends JNDIStorable implements Connectio
}
super.finalize();
}
// this may need to be set by classes which extend this class
protected void makeReadOnly() {
this.readOnly = true;
}
}