142 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
6.1 Overview of Host Publisher applications
Applications built in Host Publisher Studio contain Integration Objects. Integration Objects are
JavaBeans that encapsulate interactions with a data source, such as a database or a 5250
application. Then they return specific data from that source for use as output to Web pages,
Enterprise JavaBean (EJB) applications, J2EE application clients, or Java thin application
clients. Integration Objects connect to the data source, navigate to the desired data, extract
the data, and store the data in properties of the Integration Object, which can then be
accessed by JavaServer Pages (JSPs). See Figure 6-1.
Figure 6-1 IBM WebSphere Host Publisher
A J2EE application is packaged as an Enterprise Archive (EAR) file. The EAR file includes
everything necessary to run the application on Host Publisher Server. The elements that
make up the EAR file cannot be shared with other applications on the server. However, Host
Publisher Studio allows some elements created for one application to be reused in the
creation of other applications. When the application is built, a copy of the reused element is
included in the applications EAR file. See Figure 6-2.
Chapter 6. Using Host Publisher Studio to develop J2EE applications 143
Figure 6-2 J2EE packaging
In a Host Publisher application, the elements that make up the EAR file include Integration
Objects, JSP pages, and support files.
The following steps show the sequence for creating and building a J2EE application in Host
Publisher Studio:
1. Create an Integration Object in Host Publisher Studio to access a data source and return
the desired data. See 6.2, Integration Objects on page 144.
2. Build Web pages that use one or more Integration Objects to form a Web application. See
6.5, Application Integrator on page 183.
3. Transfer the Web application to one or more Host Publisher Servers. See 6.5.3,
Transferring applications to a Host Publisher Server on page 196.
4. Deploy (install) the application using the WebSphere Administrative Console. For more
information, refer to the WebSphere documentation at:
http://www-1.ibm.com/servers/eserver/iseries/software/websphere/wsappserver/docs/doc.htm
You should also see 6.5.4, Deploying the application on WebSphere Application Server
on page 199.
Host Publisher Studio is also used to create Integration Objects that run remotely. The two
ways to do this are:
Create J2EE EJB-based applications. The Web module containing the EJB access beans
can be deployed separately from the EJB module, which runs Integration Objects located
on the Host Publisher system. See 6.7, Enterprise JavaBeans support on page 207, for
details.
Create Integration Objects that take advantage of Web Services function provided by
WebSphere Studio tools at the 4.0.2 level or above, such as WebSphere Studio
Application Developer. With the Web Services function, your Integration Objects can

Get iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.