일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Google Map
- swingx
- Spring
- PLSQL
- 가우스
- iBATIS
- MySQL
- tomcat
- Struts
- jQuery
- 선택적조인
- PHP
- MFC
- dock
- ibsheet
- Eclipse
- oracle
- Android
- sencha touch
- Ajax
- jsr 296
- JDOM
- appspresso
- WebLogic
- phonegap
- GPS
- 전자정부프레임워크
- rowspan
- node.js
- JSON
Archives
- Today
- Total
Where The Streets Have No Name
UserTransaction 객체를 가져오는 방법 본문
import javax.transaction.*;
import javax.naming.*;
InitialContext ctx = new InitialContext();
UserTransaction tx1 = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
tx1.begin();
try{
tx1.commit();
} catch ( Exception e ) {
tx1.rollback();
}
import javax.naming.*;
InitialContext ctx = new InitialContext();
UserTransaction tx1 = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
tx1.begin();
try{
tx1.commit();
} catch ( Exception e ) {
tx1.rollback();
}