It took a day to get in the first time to contact JBoss, EJB The following is some of my experience today, I hope that the beginner will make JBoss3.2.6. The JBoss release method is in the deploy directory. If you want to get all Server, add parameters -c all note points: jboss.xml Xml version = "1.0" encoding = "UTF-8" in Meta-Inf directory: "UTF-8"?> < Session> Hello ejb-name> EJB / HELLOEJB jndi-name> session> enterprise-beans> xml version in Web.xml XML Version = "1.0" eNCoding = "ISO-8859-1"?>
action servlet-name> helloservlet servlet-class> 2 load-on-startup> Servlet> description> EJB / HELLOEJB EJB-REF-NAME> Session EJB-REF-TYPE> HelloHome home> Hello remote> Hello EJB-LINK> EJB-REF> Action servlet-name> < URL-PATTERN> / HELLO url-pattern> servlet-maping> The purpose is to point Localhost: 8080 / hello point to helloservlet without this sentence directly with localhost: 8080 / helloservlet is not successful! web-app> jboss-web.xml XML Version = "1.0" encoding = "ISO-8859-1"?>
EJB / HELLOEJB EJB-REF-NAME> EJB / HELLOEJB JNDI-NAME> EJB-REF> JBoss-Web>