Résumé du contenu de la page N° 1
Developing Applications for
™
J2EE Servers
®
JBuilder 2005
Résumé du contenu de la page N° 2
Borland Software Corporation 100 Enterprise Way Scotts Valley, California 95066-3249 www.borland.com Refer to the file deploy.html located in the redist directory of your JBuilder product for a complete list of files that you can distribute in accordance with the JBuilder License Statement and Limited Warranty. Borland Software Corporation may have patents and/or pending patent applications covering subject matter in this document. Please refer to the product CD or the About dialog box for the l
Résumé du contenu de la page N° 3
Contents Chapter 1 Chapter 5 Introduction 1 Using JBuilder with Borland servers 29 Documentation conventions . . . . . . . . . . . . . 1 Configuring Borland servers in JBuilder . . . . . . . 29 Developer support and resources. . . . . . . . . . . 2 Borland Enterprise Server AppServer Contacting Borland Developer Support . . . . . . 3 Edition 6.0. . . . . . . . . . . . . . . . . . . . 29 Online resources. . . . . . . . . . . .
Résumé du contenu de la page N° 4
Setting and viewing IDL build properties . . . . . . . 55 Chapter 9 Using the CORBA wizards . . . . . . . . . . . . . . 57 Using JBuilder with JBoss servers 83 Sample IDL wizard . . . . . . . . . . . . . . . . 57 Configuring JBuilder for the JBoss application CORBA Client Interface wizard . . . . . . . . . . 57 server . . . . . . . . . . . . . . . . . . . . . . . .83 CORBA Server Interface wizard. . . . . . . . . . 58
Résumé du contenu de la page N° 5
WAR with custom descriptor(s) in the Chapter 13 WEB-INF directory . . . . . . . . . . . . . . .119 Building J2EE modules 115 WAR without any classes. . . . . . . . . . . . . 119 J2EE modules . . . . . . . . . . . . . . . . . . . 115 WAR with custom class filters . . . . . . . . . . 119 Setting module build properties. . . . . . . . . . . 116 WAR with custom file types. . . . . . . . . . . .119 File type filters . . .
Résumé du contenu de la page N° 6
iv
Résumé du contenu de la page N° 7
Chapt er 1 Chapter 1Introduction Developing Applications for J2EE Servers introduces you to the various technologies that make up the Java™ 2 Platform, Enterprise Edition (J2EE™), explains why they are important, and describes how you can use JBuilder to create J2EE applications that target your application server. You’ll learn how to configure JBuilder to work with your server, and how to accomplish the essential programming tasks of running your applications, debugging them remotely, and
Résumé du contenu de la page N° 8
Developer support and resources Table 1.1 Typeface and symbol conventions (continued) Typeface Meaning [ ] Square brackets in text or syntax listings enclose optional items. Do not type the brackets. < > Angle brackets are used to indicate variables in directory paths, command options, and code samples. JDK 5.0 uses angle brackets to denote generics. For example, may be used to indicate where you need to supply a file name (including file extension), and typically indi
Résumé du contenu de la page N° 9
Developer support and resources Contacting Borland Developer Support Borland offers several support programs for customers and prospective customers. You can choose from several categories of support, ranging from free support upon installation of the Borland product, to fee-based consultant-level support and extensive assistance. For more information about Borland’s developer support services, see our web site at http://www.borland.com/devsupport/, call Borland Assist at (800) 523-7070, or
Résumé du contenu de la page N° 10
Developer support and resources Usenet newsgroups The following Usenet groups are devoted to Java and related programming issues: news:comp.lang.java.advocacy news:comp.lang.java.announce news:comp.lang.java.beans news:comp.lang.java.databases news:comp.lang.java.gui news:comp.lang.java.help news:comp.lang.java.machine news:comp.lang.java.programmer news:comp.lang.java.security news:comp.lang.java.softwaretools Note These newsgroups are maintained by users and are not officia
Résumé du contenu de la page N° 11
Chapt er 2 Chapter 2Programming for the Java 2 Platform, Enterprise Edition The Java™ 2 Platform, Enterprise Edition (J2EE™) is an architecture for a Java development platform for distributed enterprise applications. It was developed by Sun Microsystems, with input from the development community, including Borland. J2EE platform products, such as the Borland Enterprise Server, offer the developer the capability of building applications with these benefits: Reliability and scalability, so b
Résumé du contenu de la page N° 12
Why are J2EE applications desirable? was “served up” by a server. This approach initially promised improved scalability and functionality. Through hard experience, however, the development community learned that building and maintaining a flexible distributed system is very difficult using the client-server model. For example, the business logic of the application was in the client application. Every time that logic needed modification, the revised application had to be installed on every c
Résumé du contenu de la page N° 13
Why are J2EE applications desirable? This expanded diagram shows you the various components you might find running on the various tiers: The client in a J2EE application can be a JavaServer Page (JSP), HTML page, or applet running in a browser; a Java application on a desktop machine; or even a Java client on some portable device, such as a personal digital assistant (PDA) or cell phone. The middle-tier can have a servlet or a JSP-generated servlet running on a web server. These elements us
Résumé du contenu de la page N° 14
Why are J2EE applications desirable? Benefits of the multi-tier model The multi-tier approach adopted by the J2EE platform has several benefits: It reduces the complexity of distributed development with a simplified architecture and the sharing of the work load among roles. The business logic of the application runs in the middle tier inside an Enterprise JavaBean (EJB) container and/or on a web server. These containers and servers can handle many of the difficult tasks for developers. For
Résumé du contenu de la page N° 15
How JBuilder can help How JBuilder can help JBuilder Enterprise Edition has many features to help your team develop J2EE applications. These are the technologies JBuilder has to help you develop the client tier: Client tier technologies Applets Applets are a special kind of Java application that are downloaded and run by a web browser on a client machine. To begin developing an applet in JBuilder, start with the Applet wizard. For information about working with applets, see “Working with
Résumé du contenu de la page N° 16
How JBuilder can help manipulate data from a database so you can build data-aware servlets and JSPs. For information about InternetBeans Express, see “Using InternetBeans Express” in the Developing Web Applications. This is the middle-tier J2EE technology that uses an EJB container: Enterprise JavaBeans (EJBs) Enterprise JavaBeans are server-side components that contain the business logic of the application. JBuilder assists you in building EJB 1.x and EJB 2.0 components. Start building en
Résumé du contenu de la page N° 17
Learning about J2EE Extensible Markup Language (XML) Although not really a J2EE technology, XML is widely used by J2EE technologies. For example, web components and enterprise beans have their deployment descriptors written in XML. These deployment descriptors describe how the components behave once they are deployed. JBuilder has several XML features that help you accomplish common programming tasks you might encounter in your J2EE projects. For information about JBuilder’s XML features,
Résumé du contenu de la page N° 18
12 Developing Applications for J2EE Servers
Résumé du contenu de la page N° 19
Chapt er 3 Chapter 3Creating applications with J2EE technologies The Developing Web Applications, Developing Applications with Enterprise JavaBeans, and other parts of JBuilder’s documentation explain how to use J2EE technologies. They describe in depth how to use JBuilder features to develop web applications, work with XML, develop Enterprise JavaBeans, access and work with your data using DataExpress, and create web services. Within each of these areas of the documentation, you should fin
Résumé du contenu de la page N° 20
Client-server applications Here’s the diagram from the previous chapter showing the multiple tiers used in most J2EE applications: The diagram shows you all the different types of entities found on each tier, but it doesn’t show you the common ways J2EE applications combine these technologies to create reliable, scalable, and easily distributed applications. Client-server applications Before looking at multi-tier J2EE models, consider the old standard, the two-tier client- server model. Using