Class ConnectionPool


  • @Technical
    @Bean
    @Singleton
    public class ConnectionPool
    extends Object
    A pool of JDBC connections. It encapsulates the underlying mechanism to manage a pool of connections to the data source used by Silverpeas.

    Currently, it wraps the connection pool spawned by the JEE application server for the data source used by Silverpeas.

    • Constructor Detail

      • ConnectionPool

        protected ConnectionPool()
    • Method Detail

      • getConnection

        public static Connection getConnection()
                                        throws SQLException
        Return a connection from the Silverpeas data source.
        Returns:
        a connection from the Silverpeas data source.
        Throws:
        SQLException - if an error occurs while getting an available connection.
      • getDataSourceConnection

        public Connection getDataSourceConnection()
                                           throws SQLException
        Return a connection from the Silverpeas data source.
        Returns:
        a connection from the Silverpeas data source.
        Throws:
        SQLException - if an error occurs while getting an available connection.