Ok I create a postgre-ds.xml file in folder deploy.
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>TestWSSecurityDS</jndi-name>
<connection-url>jdbc:postgresql://localhost:5432/table</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>postgres</user-name>
<password>password</password>
</local-tx-datasource>
</datasources>
But when I try to use WS with client still remain: com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized