4.0.2? Wow, that is old. Have you read the docs - all of your questions should be answered in there - start wit the Getting Started Guide. Also, get a copy of JBos At Work - it is based on 4.0.2 from what I recall.
JBoss At Work: http://oreilly.com/catalog/9780596007348/