You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Daniel Ellis (JIRA)" <ji...@apache.org> on 2009/07/08 14:36:08 UTC
[jira] Created: (AMQNET-174) Cannot set properties via the
configuration file, such as session.PrefetchSize
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.
[jira] Resolved: (AMQNET-174) Cannot set properties via the
configuration file, such as session.PrefetchSize
Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQNET-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Gomes resolved AMQNET-174.
------------------------------
Resolution: Fixed
Applied patch. Made one small change to delay FieldInfo look up only if we fail to get PropertyInfo. No need to do FieldInfo if we find PropertyInfo.
Thanks for the patch, Daniel!
> 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
> Affects Versions: 1.1.0
> Environment: .NET 2.0 on Windows XP with ActiveMQ
> Reporter: Daniel Ellis
> Assignee: Jim Gomes
> Fix For: 1.2.0
>
> 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.
[jira] Updated: (AMQNET-174) Cannot set properties via the
configuration file, such as session.PrefetchSize
Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQNET-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Gomes updated AMQNET-174:
-----------------------------
Affects Version/s: 1.1.0
Fix Version/s: 1.2.0
> 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
> Affects Versions: 1.1.0
> Environment: .NET 2.0 on Windows XP with ActiveMQ
> Reporter: Daniel Ellis
> Assignee: Jim Gomes
> Fix For: 1.2.0
>
> 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.
[jira] Updated: (AMQNET-174) Cannot set properties via the
configuration file, such as session.PrefetchSize
Posted by "Daniel Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQNET-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Ellis updated AMQNET-174:
--------------------------------
Attachment: UriProperty.patch
Simple patch to check for fields as well as properties when parsing the URI.
> 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.