[jira] [Commented] (CAMEL-8443) Add properties to route via DSL and XML, expose route properties via JMX

2015-03-06 Thread Jyrki Ruuskanen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-8443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14350189#comment-14350189
 ] 

Jyrki Ruuskanen commented on CAMEL-8443:


Is toString representation of the route still available on JMX? We are 
currently using it, and I can imagine there are others who rely on it, as well.

How is the optional language parameter handled on JMX? getDescription(String 
lang), maybe?

 Add properties to route via DSL and XML, expose route properties via JMX
 

 Key: CAMEL-8443
 URL: https://issues.apache.org/jira/browse/CAMEL-8443
 Project: Camel
  Issue Type: Improvement
  Components: camel-core, jmx
Reporter: Jyrki Ruuskanen
Assignee: Claus Ibsen
Priority: Minor
 Fix For: 2.15.0


 Allow adding arbitrary String properties to a route, with 
 .routeProperty(name, value) in Java DSL and routeProperty name=... 
 value=.../ in XML.
 Expose getProperties(), getProperty(String name) and setProperty(String name, 
 String value) for routes in JMX.
 Our use case:
 Add documentation to route in code and show it on a graph of Camel contexts, 
 routes and endpoints in a running system. Graph is generated from JMX data.
 This would be nice data to show on hawtio as well. Although in this case we 
 might want to use an explicit documentation variable rather than a reserved 
 property name.
 Route has a properties map but that's used internally. These public 
 properties would be held in a new map: publicProperties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-8443) Add properties to route via DSL and XML, expose route properties via JMX

2015-03-06 Thread Jyrki Ruuskanen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-8443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14350108#comment-14350108
 ] 

Jyrki Ruuskanen commented on CAMEL-8443:


Yeah, that can be used to set the description (which ends up in 
OptionalIdentifiedDefinition), but how do I access it through JMX? Route JMX 
operation getDescription() is tied to route.toString() which doesn't seem to 
have any connection to OptionalIdentifiedDefinition.getDescription().

 Add properties to route via DSL and XML, expose route properties via JMX
 

 Key: CAMEL-8443
 URL: https://issues.apache.org/jira/browse/CAMEL-8443
 Project: Camel
  Issue Type: Improvement
  Components: camel-core
Reporter: Jyrki Ruuskanen
Priority: Minor

 Allow adding arbitrary String properties to a route, with 
 .routeProperty(name, value) in Java DSL and routeProperty name=... 
 value=.../ in XML.
 Expose getProperties(), getProperty(String name) and setProperty(String name, 
 String value) for routes in JMX.
 Our use case:
 Add documentation to route in code and show it on a graph of Camel contexts, 
 routes and endpoints in a running system. Graph is generated from JMX data.
 This would be nice data to show on hawtio as well. Although in this case we 
 might want to use an explicit documentation variable rather than a reserved 
 property name.
 Route has a properties map but that's used internally. These public 
 properties would be held in a new map: publicProperties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-8443) Add properties to route via DSL and XML, expose route properties via JMX

2015-03-06 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-8443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14350122#comment-14350122
 ] 

Claus Ibsen commented on CAMEL-8443:


Yeah we should use the description over JMX instead of toString. Let me work on 
that.

 Add properties to route via DSL and XML, expose route properties via JMX
 

 Key: CAMEL-8443
 URL: https://issues.apache.org/jira/browse/CAMEL-8443
 Project: Camel
  Issue Type: Improvement
  Components: camel-core
Reporter: Jyrki Ruuskanen
Priority: Minor

 Allow adding arbitrary String properties to a route, with 
 .routeProperty(name, value) in Java DSL and routeProperty name=... 
 value=.../ in XML.
 Expose getProperties(), getProperty(String name) and setProperty(String name, 
 String value) for routes in JMX.
 Our use case:
 Add documentation to route in code and show it on a graph of Camel contexts, 
 routes and endpoints in a running system. Graph is generated from JMX data.
 This would be nice data to show on hawtio as well. Although in this case we 
 might want to use an explicit documentation variable rather than a reserved 
 property name.
 Route has a properties map but that's used internally. These public 
 properties would be held in a new map: publicProperties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CAMEL-8443) Add properties to route via DSL and XML, expose route properties via JMX

2015-03-05 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-8443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14350051#comment-14350051
 ] 

Claus Ibsen commented on CAMEL-8443:


You can use description on a route to document it. 

 Add properties to route via DSL and XML, expose route properties via JMX
 

 Key: CAMEL-8443
 URL: https://issues.apache.org/jira/browse/CAMEL-8443
 Project: Camel
  Issue Type: Improvement
  Components: camel-core
Reporter: Jyrki Ruuskanen
Priority: Minor

 Allow adding arbitrary String properties to a route, with 
 .routeProperty(name, value) in Java DSL and routeProperty name=... 
 value=.../ in XML.
 Expose getProperties(), getProperty(String name) and setProperty(String name, 
 String value) for routes in JMX.
 Our use case:
 Add documentation to route in code and show it on a graph of Camel contexts, 
 routes and endpoints in a running system. Graph is generated from JMX data.
 This would be nice data to show on hawtio as well. Although in this case we 
 might want to use an explicit documentation variable rather than a reserved 
 property name.
 Route has a properties map but that's used internally. These public 
 properties would be held in a new map: publicProperties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)