activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raj_New <rsr_...@yahoo.co.in>
Subject Re: java.lang.NoSuchMethodError: org/apache/activemq/ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
Date Tue, 24 Feb 2009 07:05:27 GMT

Problem solved by using latest j2ee.jar. Thanks


Raj_New wrote:
> 
> I am trying to send a message through QueueSender but it get failed. I am
> using AMQ5.2 and the respective jars are in classpath.
> 
> I am using following code :
> 
> QueueSender queueSender = session.createSender(destination);
> queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);
> queueSender.setTimeToLive(0);
> 						
> TextMessage newMessage = session.createTextMessage(textMsg.getText());
> newMessage.setJMSCorrelationID(usrInputGUID);	
> newMessage.setStringProperty(MIBConstants.JMSClientID,
> textMsg.getStringProperty(MIBConstants.JMSClientID));
> newMessage.setStringProperty(MIBConstants.JMSEchoList,
> textMsg.getStringProperty(MIBConstants.JMSEchoList));
> newMessage.setIntProperty(MIBConstants.RETRYCOUNT, 0);		
> queueSender.send(newMessage);
> queueSender.close();
> 
> when flow comes on queueSender.send method it through 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
> com.csc.fs.mibse.util.ResubmitResponseUtil.main(ResubmitResponseUtil.java:103)
> 
> 
> Please help me how can I solve this problem.
> 

-- 
View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org-apache-activemq-ActiveMQMessageProducerSupport.getDestination%28%29Ljavax-jms-Destination--tp22176586p22176921.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message