I want to send the message from a simple standalone java class. I defined the queue in jboss-4.0.3SP1\server\default\deploy\jms\jbossmq-destinations-service.xml
as <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=MyTestQueue"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean> which is a copy and paste from the examples already there.
Have you made sure that the client jars from JBoss, especially the jbossall-client.jar, is present in the standalone client's classpath? You can find the client jar(s) in %JBOSS_HOME%/client folder [ March 03, 2007: Message edited by: Jaikiran Pai ]