일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 가우스
- Android
- Eclipse
- Ajax
- PHP
- PLSQL
- WebLogic
- tomcat
- MySQL
- dock
- iBATIS
- sencha touch
- 선택적조인
- ibsheet
- Struts
- JSON
- JDOM
- Google Map
- swingx
- MFC
- Spring
- 전자정부프레임워크
- jsr 296
- jQuery
- rowspan
- appspresso
- oracle
- GPS
- phonegap
- node.js
- Today
- Total
목록Developement/Java (204)
Where The Streets Have No Name
http://www.javaworld.com/javaworld/jw-04-2007/jw-04-jdbc.html The problems with PreparedStatement stem from its syntax for parameters. Parameters are anonymous and accessed by index as in the following: PreparedStatement p = con.prepareStatement("select * from people where (first_name = ? or last_name = ?) and address = ?"); p.setString(1, name); p.setString(2, name); p.setString(3, address); Fo..
http://www.okjsp.pe.kr/seq/16790
wtp상에서 oc4j plug-in이 설치된 위치 : c:\eclipse3x\plugins\org.eclipse.jst.server.generic.oc4j_1.5.0.v200606130315 oc4j가 설치된 위치 : c:\oc4j 이문서에서는 oc4j_home은 c:\oc4j 로 설정한다. 1. plugin.properties (수정) # ============ oc4j904 ==================== oracle.9_0_4.runtime.name=Oracle OC4J Standalone 9.0.4 oracle.9_0_4.runtime.description=Oracle OC4J 9.0.4 runtime oracle.9_0_4.server.name=Oracle OC4J Standalone Se..
http://www.oracle.com/technology/products/oracle9i/daily/jun07.html Best Practices Always disable auto-commit mode with 'Update Batching'; Use a batch size of around 10; Don't mix the standard and Oracle models of 'Update Batching'. Explicitly commit the transaction Example of Standard Update Batching The following example illustrates how you use the Standard JDBC 'Update Batching' feature. It a..
현재 사용버전이 9.0.4를 기준으로 보면 transaction의 time-out이 기본값(30초)를 초과한경우 위 에러가 발생합니다. 이경우 server.xml에 를 추가하면 해결됩니다. 시간의 단위는 msec이므로 참고하세요.
html 사이에 넣기 또는
package filters; import java.io.IOException; import javax.servlet.*; public class SetCharacterEncodingFilter implements Filter { protected String encoding = null; protected FilterConfig filterConfig = null; protected boolean ignore = true; public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; this.encoding = filterConfig.getInitParameter("encodin..
package explorer에서 원하는 프로젝트를 선택하고 오른쪽 마우스를 클릭한후 properties를 선택한다.
위에서 설정하고자 하는 서버를 선택한다. Web Site에는 값을 입력할필요 없으며 password에는 oc4j를 설치시 설정한 비밀번호를 입력한다. 서버이름을 고치려면 등록된 서버를 더블클릭하면 아래 그림의 부분을 입력후 저장하면됨
C:\oc4j10g\j2ee\home\persistence 의 **.lock파일을 다 지운다
Open launch configuration에서는 저장이 안됨. C:\eclipse3x\plugins\org.eclipse.jst.server.generic.oc4j_1.5.0.v200606130315\servers 에 있는 oracle.10.1.3.serverdef 를 수정해야함 oracle.oc4j.loader.boot.BootStrap ${OC4J_HOME} -Dlaf.config.file=c:\irs_pjt\conf\laf.conf oracle_boot vmParameter항목에 값이 있으면 server를 추가시 값을 지정해서 저장시키며 수정을 불가능함 매번 다른값을 넣기 위해서 oracle.10.1.3.serverdef 를 고치는것은 매우 비효율적임 그래서 서버 추가시 vm arguments,..
web.xml에 다음을 추가한다. xxxx xxxx xxxx /servlet/xxxx
http://forums.oracle.com/forums/thread.jspa?messageID=1568737� 1. Edit the j2ee/home/config/application.xml file. 2. Add a new entry of the form below, pointinto the path to the toplevel directory of your web module: This "deploys" the specified web module as an element of the "default" application. 3. Save the file. 4. Edit the j2ee/home/config/default-web-site.xml file 5. Add a new ent..
String[] jobGroups;String[] jobsInGroup;int i;int j;ServletContext ctx = request.getSession().getServletContext();Scheduler scheduler = null;StdSchedulerFactory factory = (StdSchedulerFactory)ctx.getAttribute(QuartzInitializerServlet.QUARTZ_FACTORY_KEY);scheduler = factory.getScheduler(); //scheduler.pauseJob("testjob2", "testgroup"); //정지//scheduler.resumeJob("testjob2", "testgroup"); //재시작/..
The following table describes the mapping between the log level of JDK 1.4 logging and Apache commons-logging: JDK 1.4 Apache commons-logging FINESTtrace FINE, FINERdebug INFO, CONFIGinfo WARNINGwarn SEVEREerror, fatal eclipse에서 quartz의 로그 메세지를 보지 않으려면 eclipse에 등록된 jre경로에 가서 logging.properties에서 .level 항목에 SEVERE 를 넣으면 해결됨
oc4j에서 jndi로 connection pool을 참조하려면 eclipse의 Preferences에서 oc4j메뉴에서 Optional Program Arguments에 -userThreads를 입력해야함
http://my.hanyang.ac.kr/~ksangki/kms/stories.php?story=03/03/12/5842473 위와 같이 data-sources.xml이 설정되어 있다고 가정하고 servlet에서 connection pool에서부터 connection을 가져오는 것은 아래와 같습니다. javax.naming.InitialContext ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/OracleDS"); java.sql.Connection conn = ds.getConnection(); //사용 conn.close(); 중요한 점은 jdbc/Orac..
http://www.okjsp.pe.kr/bbs?act=VIEW&bbs=bbs3&keyfield=content&keyword=&seq=59455&pg=4