Sun ONE Application Server 7, Standard Edition Sun[tm] ONE Studio 4, Enterprise Edition for Java[tm] with Application Server 7 Tutorial |
ContentsWhat You Should Know
How This Guide is Organized
Documentation Conventions
Introducing Sun ONE Studio 4, Enterprise Edition for Java
Sun ONE Studio 4 Integration with Sun ONE Application Server 7
Setting Up Your Development Environment
Sun ONE Studio 4 and Application Server Integration
Installing the IDE Plugin
Setting Up Your Development Environment
Connecting the IDE to Application Server Deployments
Install Sun ONE Studio 4, Enterprise Edition for Java
Install IDE Plugin
Application Server and IDE Installed on Same Machine
Register Target Application Server
Download Plugin from the Sun ONE Studio Update Center
Application Server Installed on Remote Development Server
Install the Plugin Using the Sun ONE Application Server 7 Installer
Start the Application Server
Start the Application Server on Windows Platforms
Start the IDE
Start the Application Server on UNIX Platforms
Start the IDE on Windows Platforms
Set Sun ONE Application Server as the Default Server
Start the IDE on UNIX Platforms
Ensure Plugin is Configured with Application Server Installation Directory
Register a Sun ONE Application Server
Verify that the Application Server Instance is Running
Developing Session Beans and Web Applications
Becoming Familiar with the Sample
Creating a Session Bean with the EJB[tm] Builder
Create the Session Bean
Testing the Session Bean
Modify JNDI Name
Modify Automatically Generated Methods
Create a Business Method
Create the Test Client
Packaging the Enterprise Bean in an EJB[tm] Module
Deploy the Test Client
Run the Test Client
Creating the Web Application
Create the Web Module
Assembling the J2EE[tm] Application
Create Servlets
Create GreeterDBServlet
Define Servlet Mappings
Create GreeterDBLogDisplayServlet
Create HTML and JSP Files
Define EJB Reference
Define JDBC Resource Reference
Setting Up Database Connectivity
Configure the JDBC Driver
Deploying and Running the J2EE[tm] Application
Define the JDBC Connection Pool
To determine whether or not the connection pool has already been registered:
Define the JDBC Resource
To register the JDBC connection pool:
To determine whether or not a suitable JDBC resource has already been registered:
Start the PointBase Server Database
To register the JDBC resource (referred to as a JDBC "DataSource" in the IDE):
Disable EJB Test Application
Modifying the Application
Define Web Context Root
Deploy the Application
Run the Application
Modify HTML File
Debugging the Application
Modify JavaServer Pages[tm] (JSP[tm]) File
Modify Servlet
Modify EJB
Prepare Web Module for Debugging
Start the Debugger
Debug the EJB
Debug a JSP
Stop the Debugger