Web-based applications and WebSphere Studio Application Developer

The WebSphere® Studio Application Developer offers features that developers can use to create web-based applications.

WebSphere Application Server Developer Tools for Eclipse is designed for developers of Java™ and J2EE applications who require integrated web, XML, and web services support. This tool includes many built-in facilities and plug-ins that ease the task of accessing data stored in Db2 databases. (A plug-in is the smallest unit of function that can be independently developed and delivered.)

Each WebSphere Studio product offers the same integrated development environments and a common base of tools. Each product builds on the function of another product with additional plug-in tools. For example, WebSphere Application Server Developer Tools for Eclipse includes all WebSphere Studio Site Developer function plus plug-ins for additional function such as Enterprise JavaBeans support.

WebSphere Studio Site Developer
Offers a visual development environment that makes collaboration easy for web development teams.
WebSphere Application Server Developer Tools for Eclipse
Provides a development environment for developers of Java applications and adds tools for developing EJB applications.
WebSphere Application Server Developer Tools for Eclipse Integrated Edition
Includes WebSphere Studio Application Developer function and adds tools for integration with back-end systems.
WebSphere Studio Enterprise Developer
Includes WebSphere Studio Application Developer Integrated Edition function and additional function such as z/OS® application development tools.

WebSphere Application Server Developer Tools for Eclipse provides an IDE for building, testing, debugging, and implementing many different components. Those components include databases, web, XML, and Java components. Java components include Java J2EE applications, JSP files, EJBs, servlets, and applets.

Because WebSphere Studio Application Developer is portable across operating systems, applications that you develop with WebSphere Studio Application Developer are highly scalable. This means that you can develop the applications on one system (such as AIX®) and run them on much larger systems (such as z/OS).

WebSphere Application Server Developer Tools for Eclipse supports the Java 2 Enterprise Edition (J2EE) server model. J2EE is a set of specifications for working with multi-tiered applications on the J2EE platform. The J2EE platform includes services, APIs, and protocols for developing multi-tiered, web-based applications. The following figure shows a multi-tiered application development environment that supports web applications and J2EE applications.

Figure 1. Web application development environment
Begin figure description. This figure shows a multi-tiered application development environment that supports web applications and J2EE applications. End figure description.

Each WebSphere Studio product uses perspectives. A perspective is a set of views, editors, and tools that developers use to manipulate resources. You can use some of these perspectives to access Db2 databases.

Data perspective
Developers use the data perspective to manage the database definitions and connections that they need for application development. You can connect to Db2 databases and import database definitions, schemas, tables, stored procedures, SQL user-defined functions, and views. WebSphere Application Server Developer Tools for Eclipse provides an SQL editor that helps you create and modify SQL statements.

Using the data perspective, developers can create the following types of Db2 routines:

  • SQL and Java stored procedures
  • SQL user-defined functions
  • User-defined functions that read or receive messages from IBM MQ message queues

When developers write stored procedures that use JDBC or SQL, they can then create a wrapper for the stored procedure as JavaBeans or as a method within a session EJB. Wrapping a stored procedure avoids duplicating its business logic in other components and might result in a performance benefit. (A wrapper encapsulates an object and alters the interface or behavior of the object in some way. Session beans are enterprise beans that exist during one client/server session only.)

J2EE perspective
Developers work with the J2EE perspective to create EJB applications for accessing Db2. The J2EE perspective supports EJB 1.1 and EJB 2.0. This perspective provides graphical tools for viewing and editing Db2 schemas that help developers map entity EJBs to Db2 tables. Entity beans are enterprise beans that contain persistent data.

WebSphere Application Server Developer Tools for Eclipse also provides a feature that automatically generates a session EJB method to invoke a Db2 stored procedure.

Web perspective
Developers use the web perspective to generate web pages from SQL statements. WebSphere Studio Application Developer provides a tag library of JSP actions for database access. A tag library defines custom tags that are used throughout a document. Using the JSP tag libraries, developers can run SQL statements and stored procedures. They can easily update or delete the result sets that the SQL statements or stored procedures return.
Web services perspective
Developers use a built-in XML editor to create XML files for building Db2 web service applications based on SQL statements.