Skip to content

Instantly share code, notes, and snippets.

@gpedro
Created September 14, 2018 02:46
Show Gist options
  • Save gpedro/20c9d6cdc4a87d9a479e8a47b57c3769 to your computer and use it in GitHub Desktop.
Save gpedro/20c9d6cdc4a87d9a479e8a47b57c3769 to your computer and use it in GitHub Desktop.
Configuração do Projeto - context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<!-- aqui você coloca aquelas credenciais de desenvolvimento que estavam em persistence.xml -->
<Resource name="jdbc/xablau" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/xablau"
username="postgres" password="postgres" />
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment