Now, where else in the non-open source world would you get support like this :)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Johannsen Sent: Sunday, December 22, 2002 9:33 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] RE: JBoss newbie question from Thaer Hani Al-Ibaisi Hi, Thaer, welcome to the list. Here is my attempt at the simplest possible explanation of how to create a JBoss web application. 1.) Download JBoss 3.0.x and unzip or untar it. 2.) Go to the bin directory and run JBoss (run.bat or run.sh file). Just type ./run on the command line. This will run the default configuration, which usually just works, assuming you have an appropriate version of the Java JDK already installed. 3.) Put your EJB configuration .xml files, all EJB classes, and utility classes into a .jar file. 3.) Put your web configuration .xml files, web pages, EJB interfaces, and utility classes in a .war file. 4.) Drop the .jar file containing the EJBs into the JBoss deploy directory. 5.) Drop the .war file containing the web-related stuff into the JBoss deploy directory. The following info is based on Andreas Schaefer's "template" example, which you can download at: http://prdownloads.sourceforge.net/jboss/JBoss.3.0TemplateAndExamples.zip. ============================= The EJB .jar file structure: ============================= The .jar file may be structured as follows: .jar file --+ | +-- META-INF directory --+ | | | +-- ejb-jar.xml file | | | +-- jaws.xml file (only if using CMP) | | | +-- jboss.xml file | | | +-- jbosscmp-jdbc.xml file (only if using CMP) | +-- all entity bean, session bean, and utility class files in subdirectories based on package names ============================= The .war file structure: ============================= The .war file may be structured as follows: .war file --+ | +-- META-INF directory --+ | | | +-- manifest.mf file | +-- WEB-INF directory --+ | | | +-- jboss-web.xml file | | | +-- web.xml file | | | +-- classes directory --+ | | | +-- .class files | +-- all .jsp, .html files, possibly in a directory tree In the classes directory, there will be further sub-directories based on the Java package name hierarchy which you have defined for your classes, which may include session bean remote and home interfaces, entity bean remote and home interfaces, and utility classes. ====================================== Here is an example jboss-web.xml file: ====================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN" "http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd"> <jboss-web> <ejb-ref> <ejb-ref-name>ejb/webtest/TestSession</ejb-ref-name> <jndi-name>ejb/test/TestSession</jndi-name> </ejb-ref> </jboss-web> ================================== Here is an example web.xml file: ================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Web Client</display-name> <!-- The Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> <ejb-ref> <ejb-ref-name>ejb/webtest/TestSession</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>test.interfaces.TestSessionHome</home> <remote>test.interfaces.TestSession</remote> </ejb-ref> </web-app> ================================== The EJB configuration files are described elsewhere. See the JBoss 3.0 GETTING STARTED document and the Template examples in http://www.jboss.org/docs/#free-30x as already pointed out by Holger. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user