I was trying to follow the instruction from this blog to create a
datasource-oracle.xml file and put into deploy folder
http://www.sachinhandiekar.com/2013/08/oracle-datasource-in-fuse-esb-apache.html
 

when I use "bundle:list" I can see the datasource-oracle.xml bundle
installed

136 | Active  |  80 | 0              | wrap_mvn_com.oracle_ojdbc6_11.2.0
140 | Active  |  80 | 0.0.0          | datasource-oracle.xml

Then I tried to "feature:install jdbc" and then "jdbc:ds-list", there is no
datasource found in the list.

Is there any config I've missed to make the datasource recognizable by the
jdbc feature?

Also, I tried to check the karaf jdbc documentation but seems the commands
are different from what I have... e.g. I have jdbc:ds-list and
jdbc:ds-create commands, but the documentation is showing jdbc:datasources
and jdbc:create, the options for those commands are different from what I
have too... wondering if I have installed a wrong jdbc feature...

http://karaf.apache.org/manual/latest/users-guide/jdbc.html


karaf@root()> feature:list |grep jdbc
jdbc                                    | 4.0.1            | x        |
Started     | enterprise-4.0.1                | JDBC service and commands



karaf@root()> jdbc --help 

SUBSHELL
        jdbc

COMMANDS
    jdbc:ds-create    Create a JDBC datasource config for pax-jdbc-config
from a DataSourceFactory
    jdbc:ds-delete    Delete a JDBC datasource
    jdbc:ds-factories List the JDBC DataSourceFactories
    jdbc:ds-info      Display details about a JDBC datasource
    jdbc:ds-list      List the JDBC datasources
    jdbc:execute      Execute a SQL command on a given JDBC datasource
    jdbc:query        Execute a SQL query on a JDBC datasource
    jdbc:tables       List the tables on a given JDBC datasource






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-1-create-Pooled-Oracle-datasource-tp4042724.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to