Refer  on building osgi bundle and samples.
I already tried with given URL but its only applied with CQ5.3 and I am using CQ5.4.
But still I implement it with CQ5 but I am getting below error when connecting with H2 database
org.h2.jdbc.JdbcSQLException: Table TEST not found; SQL statement: select * from test [42102-119]
Test is my table.
But when I connecting to H2 Database consol I can able to see.
Please let me know if you have any Idea, really appreciated.
The error code 42102 indicates trying to query a table that does not exists in this schema and database. Nothing related to cq. The common cause for this would be wrong database was opened. Since the table is visible in console. Verify your connection Pool configuration for right database url and name.
Now I am using mysql database connector , I successfully get the datasource connection and successfully able to select data from database.
When I am inserting values into database it does not gives error and from page it is inserting values without error but when I am checking database the value is not present in to database.
In CQ5 is it creating any repository for saving data before inserting into database?
1 person found this helpful
Verify your implementation that you are actually inserting into database using datasource, all the exceptions are logged and you are commiting the changes. CQ does not maintain any intermediate state when you inserting into database.