before fetch you must send messages
this
Servlet shows how to send messages
the this Message Driven Bean shows how to fetch
i think
you should follow this tutorials is better.
http://weblogs.java.net/blog/kalali/archive/2006/05/step_by_step_to.html
it gives step by step examples.
anyway it is bit old tutorials.But no problem.