I have already modified the JBoss's run.bat like this:
set JAVA_OPTS=-server -Xms128M -Xmx512M -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n %JAVA_OPTS%
In IDEA 4.0, the remote debugger also can connect to my JBoss server, but I can not debug my EJB although I have added some break points to my EJB code.
And I found I can remote debug the general java classes.
So anybody can give me a hand? Do I need to config the App Server Integration? (in fact, I have already enabled the Generic Application Server integreation.)