- Make a backup copy of your current JBoss run.bat
- Open run.bat and find the lines that look like this:
1rem JPDA options. Uncomment and modify as appropriate to enable remote debugging.2rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% - Uncomment the second line by deleting "rem", and save.
- Start Jboss. (It won’t do much until you connect a debugger to it.)
- In Eclipse, open your project, and on the toolbar click on the debugger bug arrow, then Open Debug Dialog. If you couldn't find it quickly, Go to Run, Debug Configurations , Select Java Remote Debugger and Click on New.
- Choose Remote Java Application, right-click, New… and update the port to the address in the line you uncommented (possibly 8787).
- Click Debug
- Set a breakpoint somewhere in your code or a library that has source attached
- Exercise your project (via a web service, for instance) and when it hits one of your breakpoints, it will break in Eclipse.
Tuesday, August 30, 2011
Remote Debugging Eclipse Indigo & JBOSS 5.4
Saturday, August 27, 2011
How to check file size of directories in UNIX
#check partition sizes df -h #check directory size du -s -h /var/log/ #check every directory and file sizes under a dir. du -s -h /var/log/* #check individual size size du -s -h /var/log/lastlog
Sunday, February 13, 2011
wget - GNU Wget Manual
Wget is non-interactive, meaning that it can work in the background, while the user is not logged on. This allows you to start a retrieval and disconnect from the system, letting Wget finish the work. By contrast, most of the Web browsers require constant user's presence, which can be a great hindrance when transferring a lot of data.
Wget can follow links in HTML pages and create local versions of remote web sites, fully recreating the directory structure of the original site. This is sometimes referred to as ``recursive downloading.'' While doing that, Wget respects the Robot Exclusion Standard (/robots.txt). Wget can be instructed to convert the links in downloaded HTML files to the local files for offline viewing.
Wget has been designed for robustness over slow or unstable network connections; if a download fails due to a network problem, it will keep retrying until the whole file has been retrieved. If the server supports regetting, it will instruct the server to continue the download from where it left off.
Tuesday, January 4, 2011
"connect by prior" in Oracle
SELECT employee_id, last_name, manager_id
FROM employees
CONNECT BY PRIOR employee_id = manager_id;
A condition that identifies the relationship between parent rows and child rows of the hierarchy.