依我看,它提供了一个连接池把传入代码包装在纤程当中,等到连接可用的时候再恢复纤程。
As I see, it allows to pass code wrapped in Fibers to a pool of connections, which then resumes the Fibers as connections become available.
大多数业务程序员都不愿意,为了使用JDBC SPI而编写他们自己的数据源和连接池代码,并实现一个命名的服务器。
Most business programmers cannot justify the time it takes to write their own datasource and connection pool code plus implement a naming server so the JDBC SPI can be used.
清单4显示了在应用程序模块中查找创建的数据库连接池所需的代码。
Listing 4 shows the code in the application module needed to lookup the created database connection pool.
应用推荐