Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // datasource
- <datasource jndi-name="java:jboss/datasources/banco" pool-name="bancoDS">
- <connection-url>jdbc:postgresql://localhost:5432/banco</connection-url>
- <connection-property name="DatabaseName">banco</connection-property>
- <driver>org.postgresql</driver>
- <pool>
- <min-pool-size>10</min-pool-size>
- <max-pool-size>20</max-pool-size>
- </pool>
- <security>
- <user-name>postgres</user-name>
- <password>root</password>
- </security>
- </datasource>
- //security-domain
- <security-domain name="database-login" cache-type="default">
- <authentication>
- <login-module code="Database" flag="required">
- <module-option name="dsJndiName" value="java:jboss/datasources/bancoDS"/>
- <module-option name="principalsQuery" value="select senha from SystemUser where email = ?"/>
- <module-option name="rolesQuery" value="select sysRole.roles_name,'Roles' from SystemUser_SystemRole sysRole inner join SystemUser su on sysRole.SystemUser_id = su.id where su.email = ?"/>
- <module-option name="hashAlgorithm" value="SHA-256"/>
- <module-option name="hashEncoding" value="base64"/>
- </login-module>
- </authentication>
- </security-domain>
- //email
- <outbound-socket-binding name="mail-smtp-gmail">
- <remote-destination host="smtp.gmail.com" port="465"/>
- </outbound-socket-binding>
Add Comment
Please, Sign In to add comment