JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
EJB Deployment
«Prev
Next»
Enterprise JavaBeans
EJB Architecture
EJB Clients Remote Objects
Transport Stubs Skeletons
Client Stub Proxy Pattern
Separating Business Logic
EJB Reusable Components
Object Monitors
Transactional Environment
Transactions Remote Objects
Distributed Objects
Stateful Stateless Beans
EJB Container Services
EJB Session Beans
Deployment Descriptor Jar
Client View Bean
Client Bean Relationship
Home Object Interface
Finding Home Object
Creating EJB Session
Calling EJB Business Methods
EJB Exception Handling
Bean Identity Session Handles
EJB Client Program
EJB Deployment
Run Client to test Session Bean - Exercise
Run Hello client for Session Bean
Objective:
Run the provided client to test the bean.
Exercise scoring
This exercise is worth a total of 2 points. To receive full credit, you willl need to follow the instructions below and send the results output.
Background/overview
The client program is run in a window and connects with the bean across the network. The J2EE server has to be running for the client to be able to access the bean.
Download files
The files required for this exercise were downloaded into the hello directory in an earlier exercise.
Instructions
Verify that the J2EE platform is running and the Hello bean is deployed. You will see HelloApp in the server applications field of the deploytool.
Open a new window and make the hello directory current.
Edit the
compileClient
and
runClient
script files to reflect your local environment. Make sure the runClient script file has the correct name for the jar file containing the stubs that was returned from the server during deployment. It should be
HelloAppClient.jar
if you have followed the instructions exactly.
Compile the client with the
compileClient
script.
Execute the
runClient
script file.
Hints
If it does not work, make sure all the previous steps were completed. Look for any error messages in the J2EE sever window. Look at any error messages from the client. If it does not work at all, make sure you have edited the script files exactly as instructed above.
If you get a class cast exception thrown when running the client, make sure the name of the jar file used by the client that is specified in the
runClient
script is correct (the jar file containing the stubs that was returned from the server during deployment).
Submitting your exercise
Take the output of the program and enter it the text box below.
Click the
Submit
button to
Submit
this exercise.