Lesson 2 steps you through the creation an EJB project
and create a message-driven bean
In this lesson, you
- Set up an EJB project
- Create a message-driven bean
- All work done in the workbench must be associated with
a project. Projects provide an organized view of the work files and
directories, optimized with functions based on the type of project.
In the workbench, all files must reside in a project, so before you
create the create a message-driven bean you need to create a project
to put it in. In the New J2C bean page, type the value IMSInbound in the EJB Project Name field.
- Click New beside the Project Name field to create the new EJB project.
- In the New EJB Project page, provide following values:
- Project name: IMSInbound
- Project contents: accept default
- Target Runtime : WebSphere® Application Server v7.0
- EJB Module version: 3.0
- Add project to an EAR: checked
- EAR Project name: IMSInboundEAR
- Click Finish.
- On the J2C Java™ bean
output properties page, provide following values:
- Project name: IMSInbound
- Package name: sample.ims
- Stateless Session EJB's local business interface
name: CALLOUT
- Stateless Session EJB name: CALLOUTSB
- Message Driven EJB name: CALLOUTMDB
- Click Next, and the Java Methods page opens.