You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Nickolay Martinov (JIRA)" <ji...@apache.org> on 2011/08/22 07:28:29 UTC

[jira] [Created] (SM-2119) Hardcoded parameters are used instead of ones in property files in default configuration

Hardcoded parameters are used instead of ones in property files in default configuration
----------------------------------------------------------------------------------------

                 Key: SM-2119
                 URL: https://issues.apache.org/jira/browse/SM-2119
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-core
    Affects Versions: 3.3.2
            Reporter: Nickolay Martinov
            Priority: Minor


servicemix.properties contains settings for ActiveMQ host/port/url:
activemq.port              = 61616
activemq.host              = localhost
activemq.url               = tcp://${activemq.host}:${activemq.port}
Same time activemq.xml hardcodes the same information:
<amq:transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
So if user changes property file (which seems logical) without changing xml file (which might look non logical) to use another port or change localhost to 0.0.0.0 then it will not work.
Problem could be solved by using placeholder in transport connector:
<amq:transportConnector uri="${activemq.url}" discoveryUri="multicast://default"/>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Work started] (SM-2119) Hardcoded parameters are used instead of ones in property files in default configuration

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SM-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SM-2119 started by Freeman Fang.

> Hardcoded parameters are used instead of ones in property files in default configuration
> ----------------------------------------------------------------------------------------
>
>                 Key: SM-2119
>                 URL: https://issues.apache.org/jira/browse/SM-2119
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3.2
>            Reporter: Nickolay Martinov
>            Assignee: Freeman Fang
>            Priority: Minor
>
> servicemix.properties contains settings for ActiveMQ host/port/url:
> activemq.port              = 61616
> activemq.host              = localhost
> activemq.url               = tcp://${activemq.host}:${activemq.port}
> Same time activemq.xml hardcodes the same information:
> <amq:transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
> So if user changes property file (which seems logical) without changing xml file (which might look non logical) to use another port or change localhost to 0.0.0.0 then it will not work.
> Problem could be solved by using placeholder in transport connector:
> <amq:transportConnector uri="${activemq.url}" discoveryUri="multicast://default"/>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (SM-2119) Hardcoded parameters are used instead of ones in property files in default configuration

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SM-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SM-2119:
--------------------------------

    Assignee: Freeman Fang

> Hardcoded parameters are used instead of ones in property files in default configuration
> ----------------------------------------------------------------------------------------
>
>                 Key: SM-2119
>                 URL: https://issues.apache.org/jira/browse/SM-2119
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3.2
>            Reporter: Nickolay Martinov
>            Assignee: Freeman Fang
>            Priority: Minor
>
> servicemix.properties contains settings for ActiveMQ host/port/url:
> activemq.port              = 61616
> activemq.host              = localhost
> activemq.url               = tcp://${activemq.host}:${activemq.port}
> Same time activemq.xml hardcodes the same information:
> <amq:transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
> So if user changes property file (which seems logical) without changing xml file (which might look non logical) to use another port or change localhost to 0.0.0.0 then it will not work.
> Problem could be solved by using placeholder in transport connector:
> <amq:transportConnector uri="${activemq.url}" discoveryUri="multicast://default"/>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SM-2119) Hardcoded parameters are used instead of ones in property files in default configuration

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SM-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-2119.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.4

commit fix
http://svn.apache.org/viewvc?rev=1160236&view=rev
@Nickolay, 
thanks for pointing out this issue


> Hardcoded parameters are used instead of ones in property files in default configuration
> ----------------------------------------------------------------------------------------
>
>                 Key: SM-2119
>                 URL: https://issues.apache.org/jira/browse/SM-2119
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3.2
>            Reporter: Nickolay Martinov
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: 3.4
>
>
> servicemix.properties contains settings for ActiveMQ host/port/url:
> activemq.port              = 61616
> activemq.host              = localhost
> activemq.url               = tcp://${activemq.host}:${activemq.port}
> Same time activemq.xml hardcodes the same information:
> <amq:transportConnector uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
> So if user changes property file (which seems logical) without changing xml file (which might look non logical) to use another port or change localhost to 0.0.0.0 then it will not work.
> Problem could be solved by using placeholder in transport connector:
> <amq:transportConnector uri="${activemq.url}" discoveryUri="multicast://default"/>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira