It is possible to use external datasources for applications developed in Codenvy or imported to your domain. Before adding own external datasources, you can start a template project. In a Create a New project Wizard choose Java Web Application (no PaaS), and Java Web project with Datasource usage as a template.
Once in a project, go to Project > Datasource:
A template project uses HSQLDB driver and Lastaccess database that automatically creates a table with information on page hits with hit ID and time:
The project’s pom.xml file contains the following dependency required for this particular database:
<dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>2.2.6</version> </dependency>