camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <>
Subject [jira] Commented: (CAMEL-743) create a command line console for Camel for use in ServiceMix
Date Wed, 30 Jul 2008 09:14:00 GMT


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. 

camel> ls 
routes endpoints 
camel> cd endpoints 
camel> ls 
direct:foo mock:cheese 
camel> ls -l 
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 

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|],
or enable/disable the the [delayer to really slow down the processing of routes so its easy
to watch|] - or even allowing stepping through
routes maybe via the [debugger|] 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|]?

> create a command line console for Camel for use in ServiceMix
> -------------------------------------------------------------
>                 Key: CAMEL-743
>                 URL:
>             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|]
> * [extending the console|]
> 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.

View raw message