// Call super constructor
super();
+ // Init logger instance
+ this.initLoggerInstance();
+ }
+
+ /**
+ * Constructor with queue factory JNDI and queue JNDI names
+ * <p>
+ * @param factoryJndi JNDI name for queue factory
+ * @param queueJndi JNDI name for email queue
+ */
+ protected BaseDatabaseBean (final String factoryJndi, final String queueJndi) {
+ // Call super constructor
+ super(factoryJndi, queueJndi);
+
+ // Init logger instance
+ this.initLoggerInstance();
+ }
+
+ /**
+ * Initializes logger instance
+ */
+ private void initLoggerInstance () {
try {
// Get initial context
Context context = new InitialContext();
}
}
- /**
- * Constructor with queue factory JNDI and queue JNDI names
- * <p>
- * @param factoryJndi JNDI name for queue factory
- * @param queueJndi JNDI name for email queue
- */
- protected BaseDatabaseBean (final String factoryJndi, final String queueJndi) {
- // Call super constructor
- super(factoryJndi, queueJndi);
- }
-
/**
* Getter for connection instance
* <p>