Hi On Tue, Feb 9, 2010 at 7:46 PM, ariekenb <aaron.j.riekenb...@lmco.com> wrote: > > I'm running apache-servicemix 4.1.0-psc-01-00RC1, using the included version > of ActiveMQ and Camel. I have some code that's receiving a message from an > ActiveMQ queue, then sending a message to the temporary queue it got from > JMSReplyTo. > > �...@endpointinject > private ProducerTemplate producerTemplate = null; > > > �...@consume(uri = "subscriptionRequestEndpoint") > public synchronized void processSubscriptionRequest( > �...@header("JMSReplyTo") Destination jmsReplyTo, > �...@body SubscriptionManagerRegister > registrationMessage) { > try { > log.info("got registration request client name = " > + registrationMessage.getClientName() > + " jmsReplyTo = " > + jmsReplyTo); > tempQueueList.add((TemporaryQueue) jmsReplyTo); > publishMessageToSubscriber((TemporaryQueue) > jmsReplyTo, "hello"); > } catch (Exception e) { > log.warn("processSubscriptionRequest", e); > } > } > > public synchronized void publishMessageToSubscriber( > TemporaryQueue temporaryQueue, Serializable message) { > try { > final String endpointName = "activemq:temp:queue:" > + temporaryQueue.getQueueName(); > producerTemplate.sendBody(endpointName, message); > } catch (Exception e) { > log.warn("publishMessageToSubscriber", e); > } > } > > When the producerTemplate.sendBody call runs, I get the following exception. > Is this a camel bug or am I doing something wrong? > > org.springframework.jmx.export.metadata.InvalidMetadataException: No > ManagedResource attribute found for class: class > org.apache.camel.component.jms.JmsTemporaryQueueEndpoint > at > org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler.populateMBeanDescriptor(MetadataMBeanInfoAssembler.java:279) > at > org.springframework.jmx.export.assembler.AbstractMBeanInfoAssembler.getMBeanInfo(AbstractMBeanInfoAssembler.java:69) > at > org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:202) > at > org.apache.camel.management.DefaultManagementAgent.register(DefaultManagementAgent.java:193) > at > org.apache.camel.management.ManagedManagementStrategy.manageNamedObject(ManagedManagementStrategy.java:69) > at > org.apache.camel.management.ManagedManagementStrategy.manageObject(ManagedManagementStrategy.java:62) > at > org.apache.camel.management.DefaultManagementLifecycleStrategy.onEndpointAdd(DefaultManagementLifecycleStrategy.java:185) > at > org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:432) > at > org.apache.camel.impl.DefaultProducerTemplate.resolveMandatoryEndpoint(DefaultProducerTemplate.java:402) > at > org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:116) > >
At what level do this stacktrace get logged? ERROR, DEBUG, INFO etc? > -- > View this message in context: > http://old.nabble.com/Attemp-to-send-message-to-activemq-temporary-queue-using-producerTemplate%3A-InvalidMetadataException-tp27520096p27520096.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus