[esb-issues] [JBoss JIRA] Created: (JBESB-1519) NotifyJMS creates sessions array but never uses anything other than element 0

Mark Little (JIRA) jira-events at lists.jboss.org
Fri Jan 25 17:49:21 EST 2008


NotifyJMS creates sessions array but never uses anything other than element 0
-----------------------------------------------------------------------------

                 Key: JBESB-1519
                 URL: http://jira.jboss.com/jira/browse/JBESB-1519
             Project: JBoss ESB
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Rosetta
    Affects Versions: 4.2.1
            Reporter: Mark Little
             Fix For: 4.3


In the code ...

/**
	 * The javax.jms.Session instance used to talk to JMS
	 */
	protected Session[] sessions;

then ...

if(obj == null) {
                    // create a null payload message...
                    jmsMessage = sessions[0].createObjectMessage(null);
                } else if(obj instanceof byte[]) {
                    jmsMessage = sessions[0].createObjectMessage((byte[]) obj);

but ... 

final int nrQueuesOrTopics = configTrees.length;
		producers = new MessageProducer[nrQueuesOrTopics];
        connectionPools = new JmsConnectionPool[nrQueuesOrTopics];
        sessions = new Session[nrQueuesOrTopics];

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the esb-issues mailing list