THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Start the server and Launch the administrative console.
- Under Services. Select JMS Resources.
- Under Create a new JMS Resource Group:. Select For ActiveMQ.
- On the next screen suggest a Resource Group Name. In our case we are using WebJMS. All other values can be taken as default.
- Select Next once done.
- Select Add Connection Factory on the next page.
- In the drop down box select javax.jms.QueueConnectionFactory. Select Next.
- Next give the Connection Factory Name as jms/TestConnectionFactory. Keep default for all other fields. Select Next.
- Select Add Destination on the next screen.
- Select JMS Destination Type as javax.jms.Queue. Select Next.
- Name the Message Destination Name as jms/TestQueue. Select Next.
- On the next screen Select Deploy Now. This will deploy the created Plan.
- Under JMS resources you can see the newly created connection factory and queue.
Creating a EJB Project
- Right click under project explorer and Select New-> Project-> EJB Project.
- Name the project as MessageDrivenBean and Select Next.
- On the next screen keep defaults and select Next.
- On the next screen uncheck Generate Deployment Descriptor and select Next.
- Next screen suggests to configure Geronimo Deployment Plan. For current tutorial we are keeping the default values.
This creates the skeleton of the EJB project. Next step is to add a pojo to our project and annotate it. - Right click on EJB project and select New->class.
- Name the class as AdminMDB and package as mdb. Select Finish.