]> git.mxchange.org Git - jcore-utils.git/commitdiff
renamed parameter as this is no email-specific queue JNDI name ;-)
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:04:19 +0000 (23:04 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 21:04:19 +0000 (23:04 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcoreee/bean/BaseBean.java
src/org/mxchange/jcoreee/database/BaseDatabaseBean.java

index a28b41e249833574861576297ba8e7f9a9b6356b..ef7f11ddeac432bf1ddde1b63cd0e7d47a471157 100644 (file)
@@ -95,12 +95,12 @@ public abstract class BaseBean implements Serializable {
        }
 
        /**
-        * Constructor with queue factory JNDI and email-queue JNDI names
+        * Constructor with queue factory JNDI and queue JNDI names
         * <p>
         * @param factoryJndi    JNDI name for queue factory
-        * @param emailQueueJndi JNDI name for email queue
+        * @param queueJndi JNDI name for email queue
         */
-       protected BaseBean (final String factoryJndi, final String emailQueueJndi) {
+       protected BaseBean (final String factoryJndi, final String queueJndi) {
                // Call default constructor
                this();
 
@@ -113,7 +113,7 @@ public abstract class BaseBean implements Serializable {
                        QueueConnectionFactory connectionFactory = (QueueConnectionFactory) context.lookup(factoryJndi); //NOI18N
 
                        // Lookup queue
-                       this.queue = (Queue) context.lookup(emailQueueJndi); //NOI18N
+                       this.queue = (Queue) context.lookup(queueJndi); //NOI18N
 
                        // Create connection
                        this.connection = connectionFactory.createConnection();
index c6dab1ab08b27beb3b471eeba8f5e73cb22728b6..69d3b9bda0332be521a656777c509f0bebb47ba8 100644 (file)
@@ -49,14 +49,14 @@ public abstract class BaseDatabaseBean extends BaseBean {
        }
 
        /**
-        * Constructor with queue factory JNDI and email-queue JNDI names
+        * Constructor with queue factory JNDI and queue JNDI names
         * <p>
         * @param factoryJndi    JNDI name for queue factory
-        * @param emailQueueJndi JNDI name for email queue
+        * @param queueJndi JNDI name for email queue
         */
-       protected BaseDatabaseBean (final String factoryJndi, final String emailQueueJndi) {
+       protected BaseDatabaseBean (final String factoryJndi, final String queueJndi) {
                // Call super constructor
-               super(factoryJndi, emailQueueJndi);
+               super(factoryJndi, queueJndi);
        }
 
        /**