일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- MFC
- GPS
- Ajax
- 가우스
- rowspan
- sencha touch
- oracle
- iBATIS
- MySQL
- 선택적조인
- PHP
- phonegap
- WebLogic
- Struts
- node.js
- swingx
- jQuery
- tomcat
- PLSQL
- Google Map
- Eclipse
- appspresso
- Spring
- ibsheet
- JDOM
- dock
- 전자정부프레임워크
- JSON
- Android
- jsr 296
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();
}