script should die if JBOSS_HOME isn't set
Adding ejb configured via xml
Making the code a bit clearer