Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- GIT
- Source
- bash
- Eclipse
- Quartz
- Windows
- resource
- context
- import
- ssh
- web.xml
- Windows 10
- profile
- find
- maVen
- grep
- 네트워크
- DB 도메인
- Mac
- VirtualBox
- 단축키
- port
- xargs
- IntelliJ
- netsh
- JavaScript
- tomcat
- lsof
- copy-dependencies
- 공통표준용어
Archives
- Today
- Total
목록resource (2)
develog
[Java] context.xml
name="jdbc/myoracle" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@127.0.0.1:1521:orcl" username="scott" password="tiger"/>
Dev/Java
2016. 5. 30. 11:12
eclipse tomcat dbcp 셋팅 (connection pool)
Tomcat ROOT/lib/tomcat-dbcp.jar /WebContent/META-INF/context.xml 수정 server project - context.xml 수정 JNDI 리소스 가져오기 Context initCtx = new InitialContext(); Context envCtx = (Context)initCtx.lookup("java:/comp/env"); DataSource ds = (DataSource)envCtx.lookup("jdbc/testdb"); Connection conn = ds.getConnection(); System.out.println("conn : " + conn);
Web & WAS/Tomcat
2012. 10. 30. 10:48