Instead, we connected to our DB2 II database using a DataSource object (a pooled database connection defined in WebSphere) and we were ready to go.
相反,我们可以使用DataSource对象(WebSphere中定义的一种使用连接池机制的数据库连接)连接到我们的DB 2II数据库,这正是我们准备做的。
Object pooling helps level out the number of allocations made on the heap, since the most common objects in an application can be pooled.
对象池机制有助于减小在堆上进行的分配的数量,因为可以汇聚应用程序中最常见的对象。
Its main task consists of using the URL information to find a match between the virtual directory of the URL and a pooled HttpApplication object.
其主要任务是使用URL信息去将URL虚拟目录和对象池中HttpApplication对象匹配。
If multiple transactions are performed using the pooled business object, the open connection for that object will not automatically enlist in newly initiated transactions.
如果使用池中的业务对象执行多个事务,则该对象的打开连接不自动登记在新启动的事务中。
You might want to call this method if, for example, the connection object will not be used again for the amount of time that ole DB services ordinarily keeps pooled connections active.
例如,如果在OLEDB服务通常将汇入池中的连接保持为活动状态的时间内,将不会再次使用连接对象,则就可能会希望调用这个方法。
You might want to call this method if, for example, the connection object will not be used again for the amount of time that ole DB services ordinarily keeps pooled connections active.
例如,如果在OLEDB服务通常将汇入池中的连接保持为活动状态的时间内,将不会再次使用连接对象,则就可能会希望调用这个方法。
应用推荐