
10 Developing Applications for J2EE Servers
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 enterprise beans by using the EJB wizards on the Enterprise page of
the object gallery (File|New|Enterprise). For building EJB 2.0 components, JBuilder
offers the EJB designer, a Two-Way Tool™ that allows you to design your beans
visually all the while keeping your code, deployment descriptors, and design
synchronized. For more information about building, testing, and deploying
enterprise beans, see “An introduction to EJB development” in Developing
Applications with Enterprise JavaBeans.
As you create your enterprise beans, JBuilder is building your EJB deployment
descriptors. You can use JBuilder’s EJB DD Editor to modify them as you wish. For
more information about the EJB DD Editor see Chapter 11, “Editing J2EE
deployment descriptors” and “Editing EJB deployment descriptors” in Developing
Applications with Enterprise JavaBeans.
All the web application components and enterprise bean components can be combined
and delivered in an application module. JBuilder has an Application Module wizard. For
more information, see “Creating an application module” in the “Deploying enterprise
beans” chapter of the Developing Applications with Enterprise JavaBeans book.
Other J2EE technologies
While not confined to a particular architectural tier, these technologies are enablers
that make things work:
■
Java Database Connectivity (JDBC)
JDBC is the standard used to access your database on the Enterprise Information
Systems (EIS) tier. It defines a Java API you use to write SQL statements that are
sent to your database.
JBuilder includes DataExpress, a component library for accessing data in your
database. It connects your application to your database using JDBC drivers.
JBuilder also includes JDataStore, an all-Java embedded database and component
library. You access JDataStore using JDBC.
Entity beans that access rows in your database, also connect to your data using
JDBC.
■
Java Message Service (JMS)
JMS is an enterprise messaging service that routes messages between
components and processes in a distributed application.
The Borland Enterprise Server includes SonicMQ, a JMS implementation. Also
JBuilder supports EJB 2.0 components, which include message-driven beans.
Message-driven beans integrate JMS into enterprise beans. JBuilder also includes a
JMS wizard. See “Creating JMS producers and consumers” in Developing
Applications with Enterprise JavaBeans for information on creating classes and
applications that can create and consume JMS messages.
■
Java Naming and Directory Interface (JNDI)
All J2EE servers use JNDI, a Java naming service used to locate distributed
objects.
Comentarios a estos manuales