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 | 31 |
Tags
- grep
- 단축키
- Source
- maVen
- 줄바꿈 문자
- find
- vscode
- tomcat
- JavaScript
- context
- Windows 10
- profile
- Eclipse
- Mac
- Quartz
- IntelliJ
- import
- resource
- VirtualBox
- bash
- netsh
- web.xml
- ssh
- Windows
- 네트워크
- GIT
- xargs
- lsof
- port
- plugin
Archives
- Today
- Total
목록context (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