command-line oriented or graphical, as long as it (Web hosting services)
Tuesday, November 20th, 2007command-line oriented or graphical, as long as it does the job. The deployment utility should allow you to work with prepackaged enterprise beans, i.e., enterprise beans that have already been developed and archived in a JAR file. Finally, the EJB server should support an SQL-standard relational database that is accessible using JDBC. For the database, you should have privileges sufficient for creating and modifying a few simple tables in addition to normal read, update, and delete capabilities. If you have chosen an EJB server that does not support an SQL standard relational database, you may need to modify the examples to work with the product you are using. This book does not say very much about how to install and deploy enterprise beans. That task is largely server-dependent. We give some general ideas about how to organize JAR files and create deployment descriptors, but for a complete description of the deployment process, you ll have to refer to your vendor s documentation, or look at the workbook for your vendor (if one is available). This Chapter provides you with your first opportunity to use a workbook. Throughout the rest of this book you will see these callouts which direct you to an exercise in the workbook. A callout will look something like the following. Exercise 4.2, Develop and Deploy the TravelAgent EJB As was mentioned in the Preface, the workbooks can be downloaded in PDF format for free from http://www.oreilly.com/catalog/entjbeans3/ or http://www.monson-haefel.com some workbooks may even be available in paper book form and can be ordered direct from the http://www.monsonhaefel. com.Setting Up Your Java IDE To get the most from this chapter, it helps to have an IDE that has a debugger and allows you to add Java files to its environment. Several Java IDEs, like Symantec s Visual Cafe, IBM s VisualAge, Inprise s JBuilder, and Sun s Forte, fulfill this simple requirement. Some EJB products, like IBM s WebSphere, are tightly coupled with an IDE that makes life a lot easier when it comes to writing, deploying and debugging your applications. Once you have an IDE set up, you need to include the Enterprise JavaBeans package, javax.ejb. You also need the JNDI packages, including javax.naming, javax.naming.directory, and javax.naming.spi. In addition, you will need the javax.rmi and javax.jms packages. All these packages can be downloaded from Sun s Java site (http://www. javasoft.com) in the form of ZIP or JAR files. They may also be accessible in the subdirectories of your EJB server, normally under the lib directory. Copyright (c) 2001 O’Reilly & Associates 2
We feature a web hosting shopping cart and live support solution. Just try our web hosting shopping cartwhich provides a secure way of obtaining payments through your website.