Friends I am new to ActiveMQ development. I am trying to develop an
application in which I need to publish a message. Following is the code I
have written

TextMessage message = pubSession.createTextMessage( );
message.setText(text);
publisher.publish(message);

While running the code it gives following exception:

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/
jms/Destination;
        at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
        at
org.apache.activemq.ActiveMQTopicPublisher.publish(ActiveMQTopicPublisher.java:123)
        at EM.writeMessage(EM.java:52)
        at EM.main(EM.java:66)

Configuration:

I am using Active MQ 5.3.0
JMS version: 1.1
J2EE version: 1.4

Application is a stand alone JMS application.
-- 
View this message in context: 
http://old.nabble.com/publish%28TextMessate%29-gives-an-exception.-tp26792194p26792194.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Reply via email to