일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- sencha touch
- iBATIS
- MySQL
- dock
- PHP
- JSON
- appspresso
- GPS
- Eclipse
- Android
- Ajax
- WebLogic
- PLSQL
- 가우스
- Google Map
- jQuery
- jsr 296
- JDOM
- ibsheet
- Spring
- MFC
- phonegap
- Struts
- rowspan
- node.js
- swingx
- tomcat
- 선택적조인
- oracle
- 전자정부프레임워크
Archives
- Today
- Total
Where The Streets Have No Name
Getting a Connection from an Application-Scoped Connection Pool(웹로직) 본문
Developement/Java
Getting a Connection from an Application-Scoped Connection Pool(웹로직)
highheat 2006. 4. 24. 17:39To get a connection from an application-scoped connection pool, you look up the data source defined in the weblogic-application.xml descriptor file in the local environment (java:comp/env
) and then request a connection from the data source. For example:
javax.sql.DataSource ds =
(javax.sql.DataSource) ctx.lookup("java:comp/env/myDataSource");
java.sql.Connection conn = ds.getConnection();
When you are finished using the connection, make sure you close the connection to return it to the connection pool:
conn.close();