Translated message

A translation of this page exists in English.

JBoss EAP 6 の JDBC データソースがフォールトトレラントではないので、どのように設定すれば接続検証を有効化できますか?

Solution Verified - Updated -

Issue

  • JBoss EAP 6 でデータソース接続プールの妥当性チェックを有効化するには?
  • データベースのメンテナンスまたは機能停止により再起動した後に JBoss EAP 6 からデータベースに再接続できません。
  • mysql が長期間アイドル状態になると、mysql は接続を終了させているように見えます。JBoss がこれを検出しないため、コネクションを使用しようとするとエラーになります。この問題を解決するために変更することが推奨されるデータソース設定はありますか?
  • データソース接続プール関連の問題に対して設定しておいた方がよい設定は?
  • background-validation を使用した場合の懸念点はありますか?
  • validate-on-match を使用した場合の懸念点はありますか?
  • Exception sorter 実装クラスの設定は重要でしょうか?
  • server.log に以下のような Connection is closed というエラーと例外が出力されます:

    ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-/:8443-8) Closed Connection
    ERROR [controller.SearchController] (http-/:8443-8) javax.persistence.PersistenceException org.hibernate.exception.GenericJDBCException: Closed Connection
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content