have a look at the documentation for a list of the required jars:
In you case j2ee.jar has the interfaces from Sun. Our equivalent would be jboss-javaee.jar
imq.jar has probably the implementation for their Messaging service. In our case you will find jboss-messaging.jar.
Also look at the documentation for our list of dependencies.