This is a straight up Java configuration issue. All you need are the Java arguments to enable the JVM to listen for connections from remote agents. On JBoss, you edit your run.bat (assuming you are on Windows) and add the following line:
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=3000,server=y,suspend=n %JAVA_OPTS%
Edit the port number to whatever you wish and make sure you use that when connecting via Eclipse.
- George