posted 14 years ago
1. Have your MessageListener class implement the MessageDrivenBean interface.
2. Remove all your bootstrap logic (which includes looking up the connectionfactory/destination etc)
3. Specify some info (Destincation type, acknowledge mode etc) in a ejb-jar.xml file.
4. Specify other info (Connection Factory JNDI name, Destincation JNDI Name etc) in server specific files. For example in weblogic you would do that in weblogic-ejb-jar.xml and in another deployment file which ends with a .jms extension.
5. Deploy the bean in your server
ram.