Before you can see your Message-driven bean working, there are a number of steps still to go through:
Compile the bean.
Use j2eeadmin or deploytool to create the message queue.
Deploy the bean.
Create a sender client to create a message.
The message bean is associated with a queue or topic at deployment time. This queue must already exist. To create a queue (or topic), do the following:
Ensure that J2EE server is running.
Use j2eeadmin or deploytool to create the message queue or a topic. To see the existing queues and topics, use the following:
or view the Destinations screen in deploytool. This is found by selecting Server Configuration from the ...