How to connect to default database in javaAction?

Hi, all. Now I am trying to execute sql in default database. When I use the follow code to connet to the  default database.         String db = "jdbc:hsqldb:hsql://localhost/default;ifexists=true";         String user = "SA";         String password = "";          conn = DriverManager.getConnection(db, user, password);  I got a error:  < Connection refused: connect> What’s wrong in my code? How can I  connect to default database in javaAction?
1 answers

Hi Jack,

You no need to create JDBC connection you can directly retrieve value using..

List<IMendixObject> result = Core.retrieveXPathQuery(this.getContext(), "//module.entityname[xpath]");