activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Ellis (JIRA)" <jira+amq...@apache.org>
Subject [jira] Created: (AMQNET-174) Cannot set properties via the configuration file, such as session.PrefetchSize
Date Wed, 08 Jul 2009 12:36:08 GMT
Cannot set properties via the configuration file, such as session.PrefetchSize
------------------------------------------------------------------------------

                 Key: AMQNET-174
                 URL: https://issues.apache.org/activemq/browse/AMQNET-174
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: ActiveMQ Client
         Environment: .NET 2.0 on Windows XP with ActiveMQ
            Reporter: Daniel Ellis
            Assignee: Jim Gomes
         Attachments: UriProperty.patch

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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message