I'm developing an MDB to consume a pub/sub provider from remote JMS, I have no idea about it. can anyone show me a simple helloworld example of the whole process?
You might consider taking a look at the Spring-Integration project. If you're new to Spring there might be a bit of a learning curve, but in the end this project really makes developing pub/sub applications simple. Spring Integration