Where am I going wrong with JMS?

Im trying to create a simple Publish/Subscribe implementation using JMS for an application I am developing. I have some sample code to create a single topic and publish a few messages and a simple subscriber to subscribe to the topic and print the messages to the terminal.

The tutorial was for j2ee 1.3 but I am using 5 now. The 1.3 example says I do the following:

1. compile the code

2. start the server

3. create the topic using j2eeadmin -addJmsDestination MyTopic topic

4. run the clients using java -Djms.properties=%J2EE_HOME%\config\jms_client.properties SimpleTopicSubscriber MyTopic and the same for the SimpleTopicPublisher

However when I read the documentation for java 1.5 the implementation seems to be totally different. I have compiled the code and started the server but where do I go from there? The examples on the java ee 5 only show how to use ant to do this but how do I do it just using the class files?

Any help would be greatly appreciated.

[1016 byte] By [ozzie_1984a] at [2007-10-3 7:42:07]
# 1
if you want please contact me by email, i will explain to you: slaks2 at mail dot ru
slaksa at 2007-7-15 2:43:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Copy the code into your IDE (NetBeans, Exclipse, Websphere, .Net etc..)under a new project. Link to the jms jar files. Compile and go. Then deploy, Doing it from a command line is ... very hard to say the least.
cferris84a at 2007-7-15 2:43:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...