1. JBoss Portal
1.1 Open {JBossPortal-Home Dir}/bin/standalone.bat file
1.2 Activate DEBUG_MODE from false to true
=======================================================================================
.......
rem By default debug mode is disable.
set DEBUG_MODE=true
set DEBUG_PORT=8787
rem Set to all parameters by default
.......
=========================================================================================
1.3 Check Port (which is used in Eclipse) {JBossPortal-Home Dir}/bin/standalone.conf.bat file
=========================================================================================
.......
rem # Sample JPDA settings for remote socket debugging
set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"
.......
=========================================================================================
1.4 In Eclipse "Run > Debug Configurations..."
Mouse right click on "Remote JavaApplication > New"
Item |
Value |
Name |
e.g.) JBoss Portal |
Project |
Project in Eclipse which is going to be ".war" file |
Connection Type |
Standard(Socket Attach) (Default) |
Host |
localhost |
Port |
8788 |
Done
2. Fuse
2.1 Open {JBossFuse-Home Dir}/bin/karaf.bat file
2.2 Activate DEBUG_MODE by insert
=========================================================================================
.......
set KARAF_DEBUG=true
.......
=========================================================================================
2.3 Check Port
=========================================================================================
.......
set CLASSPATH=%LOCAL_CLASSPATH%;%KARAF_BASE%\conf
set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
.......
=========================================================================================
2.4 In Eclipse "Run > Debug Configurations..."
Mouse right click on "Remote JavaApplication > New"
Item | Value |
Name | e.g.) JBoss Fuse |
Project | Project in Eclipse which is going to be bundles of Fuse |
Connection Type | Standard(Socket Attach) (Default) |
Host | localhost |
Port | 5005 |
Done
3. Open Debug perspective in Eclipse and Choose server in "Debug as" menu on the top.
'Dev > Orvercome 3sec memory' 카테고리의 다른 글
JPA CriteriaQuery.multiselect() (0) | 2015.11.10 |
---|---|
rich:fileUpload - The default file upload location on JBoss server (1) | 2015.07.17 |
Native와 Mobile Web통신 시 반환 메서드명 랜덤 생성 (0) | 2013.07.24 |
Server to Server Http 요청 내용을 Fiddler에서 관찰하기 위한 설정 (0) | 2013.06.11 |
생각하지 못 했던, 자바스크립트 호출이 안 된 이유 (0) | 2013.04.15 |