You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Achim Nierbeck (JIRA)" <ji...@apache.org> on 2010/09/21 14:32:40 UTC

[jira] Created: (CAMEL-3141) Route autoStartup configurable through Property

Route autoStartup configurable through Property
-----------------------------------------------

                 Key: CAMEL-3141
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core, camel-spring
    Affects Versions: 2.4.0
            Reporter: Achim Nierbeck


Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 


{code}
<camelContext id="camel" trace="true"
	xmlns="http://camel.apache.org/schema/spring">
	
	<route id="configurable_1" autoStartup="{{startup_1}}">
		<from uri="direct:start_1"/>
		<to uri="mock:end_1"/>
	</route>
		
	<route id="configurable_2" autoStartup="{{startup_2}}">
		<from uri="direct:start_2"/>
		<to uri="mock:end_2"/>
	</route>

</camelContext>
{code}

But if I do use the PropertyPlaceholder on the CamelContext like below it works. 

{code}
<camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
{code}

So is this a bug or should this work this way?


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


[jira] Updated: (CAMEL-3141) Route autoStartup configurable through Property

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-3141:
-------------------------------

    Fix Version/s: 2.5.0
         Priority: Minor  (was: Major)

Thanks, the <route> tag should have the attributes define as String types so the properties resolver can kick in there as well, just as the <camelContext> does

> Route autoStartup configurable through Property
> -----------------------------------------------
>
>                 Key: CAMEL-3141
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Achim Nierbeck
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 
> {code}
> <camelContext id="camel" trace="true"
> 	xmlns="http://camel.apache.org/schema/spring">
> 	
> 	<route id="configurable_1" autoStartup="{{startup_1}}">
> 		<from uri="direct:start_1"/>
> 		<to uri="mock:end_1"/>
> 	</route>
> 		
> 	<route id="configurable_2" autoStartup="{{startup_2}}">
> 		<from uri="direct:start_2"/>
> 		<to uri="mock:end_2"/>
> 	</route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it works. 
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?

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


[jira] Assigned: (CAMEL-3141) Route autoStartup configurable through Property

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3141:
----------------------------------

    Assignee: Claus Ibsen

> Route autoStartup configurable through Property
> -----------------------------------------------
>
>                 Key: CAMEL-3141
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Achim Nierbeck
>            Assignee: Claus Ibsen
>
> Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 
> {code}
> <camelContext id="camel" trace="true"
> 	xmlns="http://camel.apache.org/schema/spring">
> 	
> 	<route id="configurable_1" autoStartup="{{startup_1}}">
> 		<from uri="direct:start_1"/>
> 		<to uri="mock:end_1"/>
> 	</route>
> 		
> 	<route id="configurable_2" autoStartup="{{startup_2}}">
> 		<from uri="direct:start_2"/>
> 		<to uri="mock:end_2"/>
> 	</route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it works. 
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?

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


[jira] Resolved: (CAMEL-3141) Route autoStartup configurable through Property

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3141.
--------------------------------

    Resolution: Fixed

trunk: 999428.

> Route autoStartup configurable through Property
> -----------------------------------------------
>
>                 Key: CAMEL-3141
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Achim Nierbeck
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 
> {code}
> <camelContext id="camel" trace="true"
> 	xmlns="http://camel.apache.org/schema/spring">
> 	
> 	<route id="configurable_1" autoStartup="{{startup_1}}">
> 		<from uri="direct:start_1"/>
> 		<to uri="mock:end_1"/>
> 	</route>
> 		
> 	<route id="configurable_2" autoStartup="{{startup_2}}">
> 		<from uri="direct:start_2"/>
> 		<to uri="mock:end_2"/>
> 	</route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it works. 
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?

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


[jira] Commented: (CAMEL-3141) Route autoStartup configurable through Property

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61962#action_61962 ] 

Claus Ibsen commented on CAMEL-3141:
------------------------------------

Are you saying it only works on <camelContext> level, and not on <route> level?

> Route autoStartup configurable through Property
> -----------------------------------------------
>
>                 Key: CAMEL-3141
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Achim Nierbeck
>
> Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 
> {code}
> <camelContext id="camel" trace="true"
> 	xmlns="http://camel.apache.org/schema/spring">
> 	
> 	<route id="configurable_1" autoStartup="{{startup_1}}">
> 		<from uri="direct:start_1"/>
> 		<to uri="mock:end_1"/>
> 	</route>
> 		
> 	<route id="configurable_2" autoStartup="{{startup_2}}">
> 		<from uri="direct:start_2"/>
> 		<to uri="mock:end_2"/>
> 	</route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it works. 
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?

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


[jira] Commented: (CAMEL-3141) Route autoStartup configurable through Property

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61963#action_61963 ] 

Achim Nierbeck commented on CAMEL-3141:
---------------------------------------

Exactly, 

here probably the relevant part of the exception: 


{code}
Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '{{startup_1}}' is not a valid value for 'boolean'.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
{code}

> Route autoStartup configurable through Property
> -----------------------------------------------
>
>                 Key: CAMEL-3141
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3141
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core, camel-spring
>    Affects Versions: 2.4.0
>            Reporter: Achim Nierbeck
>
> Using Camel 2.4 I want to make the usage of a certain route configurable through properties. 
> {code}
> <camelContext id="camel" trace="true"
> 	xmlns="http://camel.apache.org/schema/spring">
> 	
> 	<route id="configurable_1" autoStartup="{{startup_1}}">
> 		<from uri="direct:start_1"/>
> 		<to uri="mock:end_1"/>
> 	</route>
> 		
> 	<route id="configurable_2" autoStartup="{{startup_2}}">
> 		<from uri="direct:start_2"/>
> 		<to uri="mock:end_2"/>
> 	</route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it works. 
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?

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