Sample java app that connects to Postgres via a JDBC adapter. It reads the connection settings from the JDBC_POSTGRES_URI env variable.
$ apc app create jdbc-postgres -dr --restart noCreate a postgres service using one of your postgres providers
$ apc service create postgres-service -t postgres --provider /apcera/bootstrap::postgres --batchBind the app to this new service
$ apc service bind postgres-service -j jdbc-postgresStart the app
$ apc app start jdbc-postgres