There is no guide for deployment because you copy the completed EJB JAR to the JBoss deploy directory, or you ftp it to the JBoss deploy directory. So the JBoss specific portion consists of a couple of Ant tasks at best.
The compilation and assembly of the JAR consists of putting the EJB META-INF descriptor files and the classes for the EJB into the JAR as per the EJB JAR specification. The construction depends entirely on how your IDE requires the constituent source and compiled classes to be organised. YMMV.