The generated JAR file Changing the server-specific build properties for an EJB module Most application servers have a server-specific Build Properties page you can use to set build options for an EJB module. To see the Build Properties page for your selected target application server, 1 Right-click the EJB module in the project pane. 2 Choose Properties. 3 Select Build| in the tree: The options on the server-specific build properties page differs with each server. The page for WebLogic servers, for example, include EJBC or APPC compiler settings, depending on which version of WebLogic you are using. Compiling To compile all the classes in the project, right-click the project file (
.jpx) and choose Make, or simply choose Project|Make Project. During the compiling process, JBuilder might detect that a problem exists in a deployment descriptor that makes it invalid. If this happens, you ll see a message appear in the message pane that tells you to validate the bean in the DD editor. If you ve chosen to generate the client stubs, you ll see that the home interface node in the project pane now has several files listed below it if you click its icon to expand it. These generated files are the required client stubs and helper classes that make enterprise beans work. The build process is customized for the target application server and runs the tools specific to that application server in addition to compiling the .java files. The generated JAR file Each enterprise bean that adheres to the EJB 2.0 specification requires a deployment descriptor entry in XML format. This format wasn t mandatory in the EJB 1.1 specification, but nearly all application server vendors adopted this format for their 1.1 bean deployment descriptors. As you used the JBuilder wizards or EJB designer to create one or more enterprise beans, you also created one or more deployment descriptors that are in XML format. When you compile your project, JBuilder creates a JAR file based on the configured name and displays it as a node under the module in the project pane. You can also create the JAR file without compiling your entire project. Right-click the EJB module node in the project pane and choose Make to compile the EJB module node. If you want to modify the build properties before choosing Make, select the Properties menu item on the same context menu and make any modifications you want in the Build Properties dialog box before choosing Make to generate the JAR file. The JAR file contains all the deployment descriptors for the targeted application server. Each JAR file can contain one or more deployment descriptors. JBuilder will target one of multiple application servers. The application server you are targeting determines the number of deployment descriptors that are in the generated JAR file. Every JAR file will have an ejb-jar.xml, which describes the deployment attributes for the beans in the module that are common among all application servers. ejb-jar.xml is the EJB 1.1- or EJB 2.0-compliant deployment descriptor. 88 Developing Applications with Enterprise JavaBeans
If hosting is cheap, it doesn’t need to be second-rate. Try us if you don’t believe cheap web hosting we have 30 days money back guarantee.