IBM Version 5 Universal Remote User Manual


 
Chapter 10. Development of XML-based Enterprise applications 221
JavaBean creation
Create a new JavaBean called Customer into the CustomerInfoWeb project, by
choosing the Java perspective, and select
File—>New—>Class, edit the class
name to be Customer, and select
Finish. Edit the Customer class, creating the
attributes, and generate setter and getter methods according to the class
specification in Figure 10-5.
Figure 10-5 Customer JavaBean class specification
Creating the Web tier
To create the Web tier:
1. Close the Java perspective as we no longer require it, and switch to the XML
perspective.
2. At the top menu of your workspace, click
File—>New—>Java Bean
XML/XSL Client
to invoke the JavaBean to XML wizard.
The wizard opens Figure 10-6, indicating the creation of XML and XSL
accessing JavaBeans.
Note: Application Developer V5.0 supports both J2EE 1.2 and 1.3. In this
chapter, we are using J2EE 1.2 and EJB 1.1 to run on WebSphere Application
Server V4. If you choose J2EE 1.3, you need to use EJB 2.0 and WebSphere
Application Server Test Environment V5.