EJB integration and building


Maybe I'm kinda dense but... When you build a project with Ctrl-F9, is IDEA supposed to do EJB builkds also? I'm asking because I find that Ant compiling is much slower than on the command line (for Linux, that is) and (for me), ant compilation doesn't work in IDEA but does work on the command line.

So if there's a way (other than Ant) to make IDEA compile my EJB's, can someone explain it to me? I don't see it...