User: juhalindfors
  Date: 01/06/14 06:33:33

  Modified:    src/main/org/jbossmq/selectors Selector.java
  Log:
  Fixed my own poo-poo. The JMS CorrelationID was incorrectly being stuffed
  into an Integer object.
  
  Bug #433081: Selector on string CorellationID fails
  Submitted and patched by Aleksey. Thanks.
  
  Revision  Changes    Path
  1.4       +4 -3      jbossmq/src/main/org/jbossmq/selectors/Selector.java
  
  Index: Selector.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jbossmq/selectors/Selector.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Selector.java     2001/05/17 23:38:05     1.3
  +++ Selector.java     2001/06/14 13:33:33     1.4
  @@ -23,7 +23,7 @@
    *   @author Norbert Lataille ([EMAIL PROTECTED])
    *  @author Juha Lindfors ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.3 $
  + *   @version $Revision: 1.4 $
    */
   public class Selector
   {
  @@ -116,10 +116,11 @@
                else if (idName.equals("JMSTimestamp"))
                        return new Long(msg.getJMSTimestamp());
                else if (idName.equals("JMSCorrelationID"))
  -                     return new Integer(msg.getJMSCorrelationID());
  +                     return msg.getJMSCorrelationID();
                else if (idName.equals("JMSType"))
                        return msg.getJMSType();
                else 
                        return null;    
        }
  -}
  \ No newline at end of file
  +}
  +
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to