You get the reset because you don't
You can find answers from Sun's JMS sample code.
Also, just looking at your code you need to start your JMS connection. Also, have you modified any of your config files? You may want to try this from a clean JBoss install.