Advertisement
Guest User

Untitled

a guest
Oct 11th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. <%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
  2. <%--
  3. Document : my_jsp
  4. Created on : 12.10.2017, 0:08:05
  5. Author : Denys
  6. --%>
  7.  
  8. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  13. <title>JSP Page</title>
  14. </head>
  15. <body>
  16. <sql:query var="names" dataSource="jdbc/IFPWAFCAD">
  17. SELECT * FROM my_table_2
  18. </sql:query>
  19. </body>
  20. </html>
  21.  
  22. <?xml version="1.0" encoding="UTF-8"?>
  23. <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
  24. <session-config>
  25. <session-timeout>
  26. 30
  27. </session-timeout>
  28. </session-config>
  29. <welcome-file-list>
  30. <welcome-file>my_jsp.jsp</welcome-file>
  31. </welcome-file-list>
  32. <resource-ref>
  33. <res-ref-name>jdbc/IFPWAFCAD</res-ref-name>
  34. <res-type>javax.sql.ConnectionPoolDataSource</res-type>
  35. <res-auth>Container</res-auth>
  36. <res-sharing-scope>Shareable</res-sharing-scope>
  37. </resource-ref>
  38. </web-app>
  39.  
  40. <?xml version="1.0" encoding="UTF-8"?>
  41. <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
  42. <resources>
  43. <jdbc-resource enabled="true" jndi-name="jdbc/IFPWAFCAD" object-type="user" pool-name="IfpwafcadPool">
  44. <description/>
  45. </jdbc-resource>
  46. <jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="IfpwafcadPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
  47. <property name="URL" value="jdbc:mysql://localhost:3306/my_database_2?zeroDateTimeBehavior=convertToNull"/>
  48. <property name="User" value="root"/>
  49. <property name="Password" value="denys30071996"/>
  50. </jdbc-connection-pool>
  51. </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement