The JMS specification can be found at the following location:
The specification includes sample client code.