activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <hi...@hiramchirino.com>
Subject Re: publish(TextMessate) gives an exception.
Date Tue, 15 Dec 2009 14:07:07 GMT
Class path looks messed up.  Could you give us a full listing of every
jar on it?

On Tue, Dec 15, 2009 at 4:50 AM, noviceforAMQ <abhishekvora@yahoo.com> wrote:
>
> 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.
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Mime
View raw message