Hi,

I would like to know if it's possible to use interactive command in Karaf ?

For example, using the jdbc command, actually we use :

karaf@root()> jdbc:ds-create -url "jdbc:h2:file:/tmp/decanter" -dc
org.apache.derby.jdbc.EmbeddedDriver -dbName decanter jdbc/decanter

We could use :

karaf@root()> jdbc:ds-create

    DriverClass [org.apache.derby.jdbc.EmbeddedDriver] :
org.apache.derby.jdbc.EmbeddedDriver

    URL [jdbc:h2:file:/tmp/dbfile] : jdbc:h2:file:/tmp/decanter

    Database name [mydb] : decanter

    Jdbc name [jdbc/mydb] : jdbc/decanter

    Create datasource ? [Y/n] : Y

karaf@root()>

Is it possible with JLine and the command specifications in Karaf ?

François

Reply via email to