ARTEMIS-2952 allow protected access to ActiveMQConnectionFactory readOnly
This commit is contained in:
parent
017daa90f2
commit
f1d5303994
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue