User: chirino 
  Date: 01/10/27 18:27:00

  Modified:    src/main/org/jboss/mq SpyMessage.java
  Log:
  Commiting my initial implementation of a message cache for the JBossMQ messages.  
This should allow the server to scale so it can hold a larger number of message.
  
  Revision  Changes    Path
  1.6       +3 -2      jbossmq/src/main/org/jboss/mq/SpyMessage.java
  
  Index: SpyMessage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/SpyMessage.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SpyMessage.java   2001/10/07 08:20:39     1.5
  +++ SpyMessage.java   2001/10/28 01:27:00     1.6
  @@ -25,7 +25,7 @@
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *   @author David Maplesden ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.5 $
  + *   @version $Revision: 1.6 $
    */
   public class SpyMessage
      implements Serializable, Message, Comparable, Externalizable
  @@ -69,7 +69,6 @@
      public transient SpySession session;
      //For ordering in the JMSServerQueue (set on the server side)
      public transient long messageId;
  -   public transient Object persistData;
   
      // Constructor ---------------------------------------------------
   
  @@ -195,6 +194,8 @@
   
      public void setJMSPriority(int priority) throws JMSException
      {
  +       if( priority < 0 || priority > 10 ) 
  +             throw new JMSException("Unsupported priority: priority must be from 
0-10");
         jmsPriority=priority;
      }
   
  
  
  

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

Reply via email to