You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/07/22 17:08:00 UTC
[jira] Created: (CAMEL-743) create a command line console for Camel
for use in ServiceMix
create a command line console for Camel for use in ServiceMix
-------------------------------------------------------------
Key: CAMEL-743
URL: https://issues.apache.org/activemq/browse/CAMEL-743
Project: Apache Camel
Issue Type: New Feature
Reporter: James Strachan
Fix For: 1.5.0
for more background see...
* [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
* [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
some ideas for what the console can do
* listing routes and the steps in routes
* dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
* enable/disable tracing
* debugging? e.g. stepping through, setting breakpoints
* enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by Christian Schneider <ch...@die-schneider.net>.
I could imagine several things for routing configuration:
- integrating a good dynamic language for editing routes with content
assist. Scala would probably be a good idea
- persistence functions for routes so you can load and save the routes
you are editing
I have seen this kind of stuff in cisco routers and it was quite useful.
- Good integration with stuff written in java. It should be possible to
build routes and configs including java implementations from osgi
bundles. Ideally content assist should include browsing the loaded
bundles and e.g. their offered services.
Of course I know this is pretty hard to build but it is always good to
look a bit in the future.
Greetings
Christian
James Strachan (JIRA) schrieb:
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Fix For: 1.5.0
>
>
> for more background see...
>
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
>
> some ideas for what the console can do
>
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
>
>
[jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44630#action_44630 ]
Willem Jiang commented on CAMEL-743:
------------------------------------
OK, I will try JMX first :)
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44628#action_44628 ]
Willem Jiang commented on CAMEL-743:
------------------------------------
Thanks, James,
It is much clearer for me.
I just have another question, how can I get the camel context from the gshell ?
Is there any registry in the SMX where I can look it up ?
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-743:
----------------------------------
Assignee: Willem Jiang
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44629#action_44629 ]
James Strachan commented on CAMEL-743:
--------------------------------------
Its probably best to use JMX for all this I think - it avoids possible class loader issues. Though maybe we could use the OSGi registry too; but JMX is probably simpler
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-743) create a command line console for Camel
for use in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-743:
------------------------------
Fix Version/s: (was: 2.0.0)
Future
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-jbi
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: Future
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44627#action_44627 ]
James Strachan commented on CAMEL-743:
--------------------------------------
Agreed on putting it into the camel distro; it should only depend on some gshell stuff which shouldn't change very much.
How about we start by adding the easy stuff; like listing all routes, endpoints.
Something like an ls command?
Maybe we should make a kinda virtual camel file system - kinda like unix. e.g.
{code}
camel> ls
routes endpoints
camel> cd endpoints
camel> ls
direct:foo mock:cheese
camel> ls -l
direct:foo org.apache.camel.component.direct.DirectEndpoint
mock:cheese org.apache.camel.component.mock.MockEndpoint
camel> cd ../routes
camel> ls
route1 route2 route3
camel> cd route1
camel> ls -al
from1 to1 to2
camel> ls -al
from1 direct:foo
to1 mock:cheese
camel> cd mock:cheese
camel> ls
properties exchanges
camel> cd exchanges
camel> ls
exchangeId1 exchangeId2 exchangeId3
camel> cd exchangeId1
camel> ls
properties in out
{code}
You get the idea :)
i.e. maybe we write a little generic kinda cd / ls file system shell which can be really easy to extend can then navigate around all the available endpoints & routes showing a summary listing or a detail listing etc.
(Maybe we can just make this a kinda JMX browser really - not sure).
Then other things we'd need to add are things like [turning on / off tracing|http://activemq.apache.org/camel/tracer.html], or enable/disable the the [delayer to really slow down the processing of routes so its easy to watch|http://issues.apache.org/activemq/browse/CAMEL-640] - or even allowing stepping through routes maybe via the [debugger|http://activemq.apache.org/camel/debugger.html] and showing the contents of endpoints (i.e. showing what the tracer has collected).
To answer your question on how to add new routes via a shell - maybe we just have a separate camel-scala shell that lets you type in the [scala DSL|http://activemq.apache.org/camel/scala-dsl.html]?
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by Willem Jiang <wi...@gmail.com>.
Hi Gert,
I am OK for adding the Camel console as the SMX4 features project,
before that I had to finish the Camel's JMX side work ;)
Willem
Gert Vanthienen wrote:
> Willem, James,
>
> Wouldn't it make more sense to add this to the SMX4 features project?
> This would avoid unnecessary dependencies on anything in Camel and you
> wouldn't be able to use the console outside of ServiceMix anyway...
>
> Gert
>
> Willem Jiang (JIRA) wrote:
>> [
>> https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44626#action_44626
>> ]
>> Willem Jiang commented on CAMEL-743:
>> ------------------------------------
>>
>> Hi James,
>>
>> I think this command line console should be placed in the camel trunk
>> to avoid the camel-core dependency on the ServiceMix side.
>> Now I have no idea about how to implement the dynamical adding simple
>> routes. How can I map the "from uri to uri" to a Java DSL file
>> without writing a stupid parser ?
>>
>> Can you show me some hits ?
>>
>> Thanks,
>>
>> Willem
>>
>>
>>> create a command line console for Camel for use in ServiceMix
>>> -------------------------------------------------------------
>>>
>>> Key: CAMEL-743
>>> URL:
>>> https://issues.apache.org/activemq/browse/CAMEL-743
>>> Project: Apache Camel
>>> Issue Type: New Feature
>>> Reporter: James Strachan
>>> Assignee: Willem Jiang
>>> Fix For: 1.5.0
>>>
>>>
>>> for more background see...
>>> * [console and
>>> commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
>>> * [extending the
>>> console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
>>>
>>> some ideas for what the console can do
>>> * listing routes and the steps in routes
>>> * dynamically add some simple routes. e.g. type in "from uri to
>>> uri". Maybe the Scala DSL could be its own shell?
>>> * enable/disable tracing
>>> * debugging? e.g. stepping through, setting breakpoints
>>> * enable/disable a 'go slow dial' for easier debugging etc
>>>
>>
>>
>
>
Re: [jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by Gert Vanthienen <ge...@skynet.be>.
Willem, James,
Wouldn't it make more sense to add this to the SMX4 features project?
This would avoid unnecessary dependencies on anything in Camel and you
wouldn't be able to use the console outside of ServiceMix anyway...
Gert
Willem Jiang (JIRA) wrote:
> [ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44626#action_44626 ]
>
> Willem Jiang commented on CAMEL-743:
> ------------------------------------
>
> Hi James,
>
> I think this command line console should be placed in the camel trunk to avoid the camel-core dependency on the ServiceMix side.
> Now I have no idea about how to implement the dynamical adding simple routes. How can I map the "from uri to uri" to a Java DSL file without writing a stupid parser ?
>
> Can you show me some hits ?
>
> Thanks,
>
> Willem
>
>
>> create a command line console for Camel for use in ServiceMix
>> -------------------------------------------------------------
>>
>> Key: CAMEL-743
>> URL: https://issues.apache.org/activemq/browse/CAMEL-743
>> Project: Apache Camel
>> Issue Type: New Feature
>> Reporter: James Strachan
>> Assignee: Willem Jiang
>> Fix For: 1.5.0
>>
>>
>> for more background see...
>> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
>> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
>> some ideas for what the console can do
>> * listing routes and the steps in routes
>> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
>> * enable/disable tracing
>> * debugging? e.g. stepping through, setting breakpoints
>> * enable/disable a 'go slow dial' for easier debugging etc
>>
>
>
[jira] Commented: (CAMEL-743) create a command line console for
Camel for use in ServiceMix
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44626#action_44626 ]
Willem Jiang commented on CAMEL-743:
------------------------------------
Hi James,
I think this command line console should be placed in the camel trunk to avoid the camel-core dependency on the ServiceMix side.
Now I have no idea about how to implement the dynamical adding simple routes. How can I map the "from uri to uri" to a Java DSL file without writing a stupid parser ?
Can you show me some hits ?
Thanks,
Willem
> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>
> Key: CAMEL-743
> URL: https://issues.apache.org/activemq/browse/CAMEL-743
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
>
> for more background see...
> * [console and commands|http://servicemix.apache.org/SMX4KNL/41-commands.html]
> * [extending the console|http://servicemix.apache.org/SMX4KNL/7-extending-the-console.html]
> some ideas for what the console can do
> * listing routes and the steps in routes
> * dynamically add some simple routes. e.g. type in "from uri to uri". Maybe the Scala DSL could be its own shell?
> * enable/disable tracing
> * debugging? e.g. stepping through, setting breakpoints
> * enable/disable a 'go slow dial' for easier debugging etc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.