PostgreSQL
 sql >> Cơ Sở Dữ Liệu >  >> RDS >> PostgreSQL

Nhóm kết nối Jboss AS7 sẽ không kết nối lại

Một điều cần nhớ khi cấu hình jboss là đôi khi tài liệu tốt nhất nằm trong các dự án cho các thành phần riêng lẻ. Trong trường hợp cài đặt nguồn dữ liệu, tôi luôn yêu cầu mọi người xem tài liệu về IronJacamar: http://www.ironjacamar.org/doc/userguide/1.0/en-US/html_single/

cho những gì bạn muốn làm, các cài đặt này sẽ hoạt động:

<validation>
    <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"/>
    <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"/>

    <!-- I don't know what this does but someone on my DevOps 
    team said to set it this way. :) -->
    <validate-on-match>false</validate-on-match>

    <!-- validate the connection using a background 
    thread rather than right before you try to use the connection -->
    <background-validation>true</background-validation>

    <!-- sets the frequency the background thread will check each connection.
    The lower this setting, the quicker it will find a bad connection 
    but it will be more chatty sending the validations to the server -->
    <background-validation-millis>60000</background-validation-millis>

    <!-- fast fail will mark all the connections invalid as soon as 
    it finds a bad one. This will make it clear the pool quicker 
    if all connections are reset at once such as a restart. Fast 
    fail would be trouble though if you had a setup where the database
    sometimes selectively kills a single connection, such as killing long
    running queries. -->
    <use-fast-fail>true</use-fast-fail>

</validation>


  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. giá trị quá dài đối với ký tự loại thay đổi (100) ---- cơ sở dữ liệu được chuyển đổi gần đây, không thực hiện bất kỳ điều gì trong db

  2. PostgreSQL - Gán giá trị cho mỗi hàng dựa trên tiêu chí

  3. Thể hiện một CTE bằng Arel

  4. Làm cách nào để theo dõi tiến trình truy vấn trong PostgreSQL?

  5. Lưu trữ và truy xuất hình ảnh trong Postgresql bằng Java