Lab - Session Beans - Stateless
Lab - Session Beans - Stateless
Lab - Session Beans - Stateless
Agenda
Install Pre-requisite Softwares and DB Connection Develop a simple Stateless Session Bean Call
Pre-requisites
Eclipse IDE (Bundled with JBoss 6) Jboss Server (http://sourceforge.net/projects/jboss/files/JB oss/JBoss-6.0.0.Final/)
Eclipse IDE
Eclipse IDE Download Jboss Eclipse Plugin
http://www.eclipse.org/
http://www.jboss.org/tools/download/
JBoss Server
Download the Application Server: http://sourceforge.net/projects/jboss/files/JBo s/JBoss-6.0.0.Final/
JBoss Server
Define the Home directory of JBoss AS and click Finish.
Project Overview
For this session: We ll create a simple Stateless Session Bean.
Go to > New > EJB > EJB Project Name: ejbsampleproject_<name> Target: JBoss 6. Create EAR Project Create Client Project Click Next to Finish
Note: Remote and Local Interface served as the clients reference of the bean.
Run the EAR file on the server to deploy the EJB Components.
If the above lines are shown on the Console, then the Session Bean was successfully deployed.
If you were able to see the value thrown from the Session Bean, that means you have successfully called the Bean from the Application Server.