12월, 2013의 게시물 표시

Application mornitoring tool - Spring Insight

[download] http://gopivotal.com/products/pivotal-tc-server [forum] http://forum.spring.io/forum/spring-projects/management/insight 개요 - What is Spring insight? http://www.youtube.com/watch?v=nA4SXDl2EFU http://www.youtube.com/watch?v=nBqSh7nVNzc 어플리케이션 모니터링 도구임. 설치 tcServer? Spring insight는 Pivotal의 tcServer에 내장되어 있다고 하며 tcServer는 Tomcat을 개선하여 기능을 추가한 것이라 함. 여기서 기능은 Spring 어플리케이션의 리로드, 모니터링 도구인 Spring insight 내장이라함.  리로드는 소스 수정후 서버재시작이 없이 반영하여 개발 효율성을 높인 것이라함.  발췌 [ Spring tc Server와 Spring Insight 소개 - Tistory ] tcServer에 내장됬다고 하는 Insight만을 뽑아서 익숙한 Tomcat에 설치하는 방법 tomcat에 설치        1. download            http://gopivotal.com/products/pivotal-tc-server  에 접속하여 간단한 회원가입후          Pivotal tc Server Developer Edition Runtime (zip) 파일을 다운받음        2. 압축을 풀고 아래 파일을 Tomcat이 설치된 폴더로 옮김            [tcServer]/templates/insight/bin/*.jar -> [tomcat]/bin/            [tcServer]/templates/insight/insight   -> [tomcat]/insight            [tcServer]/

How can I make a multipart/form-data POST request using Java?

@see http://stackoverflow.com/questions/1378920/how-can-i-make-a-multipart-form-data-post-request-using-java 1. maven dependancy org.apache.httpcomponents httpcore 4.2.5 org.apache.httpcomponents httpclient 4.2.5 org.apache.httpcomponents httpmime 4.2.5 2. source package sample; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.conn.ssl.SSLSocketFactory; imp

Hot Deploy - 3 ways to save development time ( spring-loaded , JRebel, DCEVM )

이미지
1. Auto Reload Set  "Enabled" to "Auto Reload" This is likely to occur more frequently memory leak, it takes more time to reload. 이 방법은 memory leak 이 더 자주 발생할 가능성이 크고, 리로딩 하는 시간이 더 많이 소요된다. 2. JRebel  Installation JRebel Config Center -> Activation Tab -> Free -> Login -> Install and Activate -> Copy License Code -> Paste license code on eclipse ->   Overview tab -> check JRebel Enabled /Server , Projects  Server Overview -> select "Never publish automatically" on  Publishing tab -> check "Enable JRebel agent" Project Left click -> JRebel -> Add Jebel nature JRebel free license version other than the cost should be paid. The installation process is a little complicated. But first, rather than memory leak may occur JRebel free license 버전이외는 비용지불을 해야 한다.  설치과정이 다소 복잡하다.  memory leak이 발생하지만 1번과 비교할 바는 아니다.  가장 안정된 솔루션 3. spring-loaded  Insta