Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-174

Cannot set properties via the configuration file, such as session.PrefetchSize

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • ActiveMQ
    • None
    • .NET 2.0 on Windows XP with ActiveMQ

    • Patch Available

    Description

      When attempting to set the prefetch size via the URI in the configuration file, an exception is thrown stating "no such property".

      Here is the example line from the config file:

      <defaultURI value="activemq:tcp://localhost:61616?session.PrefetchSize=5"/>

      The reason this occurs is that the PrefetchSize property on session is not actually a property (e.g. get / set), but is a field.

      A patch is attached that checks for fields as well as properties, which I have tested and resolves the issue.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jgomes Jim Gomes
            danellisuk Daniel Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment