Guest User

Untitled

a guest
Nov 5th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. // datasource
  2.  
  3. <datasource jndi-name="java:jboss/datasources/banco" pool-name="bancoDS">
  4. <connection-url>jdbc:postgresql://localhost:5432/banco</connection-url>
  5. <connection-property name="DatabaseName">banco</connection-property>
  6. <driver>org.postgresql</driver>
  7. <pool>
  8. <min-pool-size>10</min-pool-size>
  9. <max-pool-size>20</max-pool-size>
  10. </pool>
  11. <security>
  12. <user-name>postgres</user-name>
  13. <password>root</password>
  14. </security>
  15. </datasource>
  16.  
  17. //security-domain
  18.  
  19. <security-domain name="database-login" cache-type="default">
  20. <authentication>
  21. <login-module code="Database" flag="required">
  22. <module-option name="dsJndiName" value="java:jboss/datasources/bancoDS"/>
  23. <module-option name="principalsQuery" value="select senha from SystemUser where email = ?"/>
  24. <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 = ?"/>
  25. <module-option name="hashAlgorithm" value="SHA-256"/>
  26. <module-option name="hashEncoding" value="base64"/>
  27. </login-module>
  28. </authentication>
  29. </security-domain>
  30.  
  31. //email
  32.  
  33. <outbound-socket-binding name="mail-smtp-gmail">
  34. <remote-destination host="smtp.gmail.com" port="465"/>
  35. </outbound-socket-binding>
Add Comment
Please, Sign In to add comment