IBM Version 5 Universal Remote User Manual


 
Chapter 10. Development of XML-based Enterprise applications 247
Figure 10-23 Access Bean creation wizard
2. Click Next.
3. Check to see that the EJB project selected is the
CustomerInfoEJB project.
From the list of Enterprise JavaBeans, select the check box next to the
customer entity bean, and click
Next.
4. Select the Enterprise bean from the list to change the default access bean
info to create data class access bean.
5. Click
Finish.
In the J2EE perspective, expand the CustomerInfoEJB project in the Navigator
view. You will find two new java classes CustomerData.java and
CustomerFactory.java under /ejbModule/registration. These two represent the
generated data class access bean.
Creating a JDBC data source
For our application to access the database, we need to create a datasource. The
data source must be defined in the application server configuration, and in our
case the application server is the Websphere Test Environment v4.0. In order to
create the data source, we need to do the following: