4 Replies Latest reply on Aug 27, 2002 5:02 AM by wdfink

    when are queue messages scavenged?

    sleeperab

      hello,

      i have a MDB consumes messages from a queue. there are
      various clients post messages to the queue. everything
      seems to be working fine. the MDB processes the messages
      orderly. however, i noticed the queue persistent file
      (in the jboss/db/jbossmq folder) keeps growing. with
      the amount of the traffic it quickly grows to 10's of
      MBytes. is this normal? or did i deploy the MDB wrong?

      thanks in advance for any help.

      -- jerry

      i'm using 244 and this is my ejb-jar.xml

      <message-driven>
      <ejb-name>xxxxx</ejb-name>
      <ejb-class>xxxxx</ejb-class>
      <message-selector></message-selector>
      <transaction-type>Container</transaction-type>

      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      </message-driven>

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>xxxxx</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>NotSupported</trans-attribute>
      </container-transaction>
      </assembly-descriptor>

      and this is my jboss.xml

      <enterprise-beans>
      <message-driven>
      <ejb-name>xxxxx</ejb-name>
      <jndi-name>xxxxx</jndi-name>
      <configuration-name>xxxxx</configuration-name>
      <destination-jndi-name>x</destination-jndi-name>
      </message-driven>
      </enterprise-beans>

        • 1. Re: when are queue messages scavenged?
          schaefera

          Hi

          This depends on what type of messages you send. If you are
          worried about the size of these files use the "rollinglogged" Persistence Manager or in JBoss 3.x the DB based on.
          Note that the file based PM does not remove messages from the file because this is a costly operation. Instead it does mark messages are delivered.

          Have fun - Andy

          • 2. Re: when are queue messages scavenged?
            seanx

            Andy,
            I am using JBoss 3.0 and thinking about using Sybase rather than hypersonic just because Sybase is supported internally. Is there any problem using a central sybase server for all the JBoss servers in a cluster? Is there a JBossmq-service.xml based on Sybase?

            thanks,

            • 3. Re: when are queue messages scavenged?
              schaefera

              Hi

              To do so you have to use different tables meaning you have to adjust the SQL statements for each server.

              I think there is one. Please check out:
              JBOSS_HOME/docs/examples/jca/sybase-ds.xml

              Have fun - Andy

              • 4. Re: when are queue messages scavenged?
                wdfink

                In case of using "rollinglogged" PM
                What happens if the size of the PM-file (free size of delivered Messages) is less than the received Message?

                We have this kind of Problem, so we have sometimes Messages &gt;&gt; 10MB !

                Wolf