You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ron Gavlin (JIRA)" <ji...@apache.org> on 2008/11/06 10:33:05 UTC

[jira] Commented: (SM-1621) New JMS in/out provider should support temporary queues/topics (as reply destinations)

    [ https://issues.apache.org/activemq/browse/SM-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47104#action_47104 ] 

Ron Gavlin commented on SM-1621:
--------------------------------

My xbean.xml configuration is listed below:

    <jms:provider service="person:PersonServiceProvider"
              endpoint="PersonSMXJMSPortProvider"
              destinationName="dynamicQueues/personSMXJMS.queue"
              connectionFactory="#connectionFactory" />

    <jms:consumer service="person:PersonService"
              endpoint="PersonSMXJMSPort"
              targetService="person:async-bridge"
              targetEndpoint="endpoint"
              destinationName="dynamicQueues/personSMXJMS.queue"
              connectionFactory="#connectionFactory" 
              marshaler="#marshaler" />

	<bean id="marshaler" class="org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler">
	   <property name="mep" value="http://www.w3.org/2004/08/wsdl/in-out" />
	</bean>/>

When I send a message to the provider endpoint above, the following exception is generated in the smx log:

ERROR - JmsComponent                   - Error processing exchange InOut[
  id: ID:10.10.10.10-11d71050a92-4:0
  status: Active
  role: provider
  service: {http://servicemix.apache.org/samples/wsdl-first}PersonServiceProvider
  endpoint: PersonSMXJMSPortProvider
  operation: {http://servicemix.apache.org/samples/wsdl-first}GetPerson
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://servicemix.apache.org/samples/wsdl-first" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://w
ww.w3.org/2001/XMLSchema-instance" name="GetPersonRequest" type="msg:GetPersonRequest" version="1.0"><jbi:part><tns:GetP
erson xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types">
      <tns:personId xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types">world</tns:personId>
    </tns:GetPerson></jbi:part></jbi:message>
  out: null
]
org.springframework.jms.InvalidDestinationException: Cannot use a Temporary destination from another Connection; nested
exception is javax.jms.InvalidDestinationException: Cannot use a Temporary destination from another Connection
Caused by:
javax.jms.InvalidDestinationException: Cannot use a Temporary destination from another Connection
        at org.apache.activemq.ActiveMQMessageConsumer.<init>(ActiveMQMessageConsumer.java:160)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1006)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:950)
        at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:863)
        at org.springframework.jms.core.JmsTemplate.createConsumer(JmsTemplate.java:873)
        at org.springframework.jms.core.JmsTemplate.doReceive(JmsTemplate.java:681)
        at org.springframework.jms.core.JmsTemplate$10.doInJms(JmsTemplate.java:656)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:437)
        at org.springframework.jms.core.JmsTemplate.receiveSelected(JmsTemplate.java:654)
        at org.apache.servicemix.jms.endpoints.JmsProviderEndpoint.processInOutInSession(JmsProviderEndpoint.java:417)
        at org.apache.servicemix.jms.endpoints.JmsProviderEndpoint$2.doInJms(JmsProviderEndpoint.java:380)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:437)
        at org.apache.servicemix.jms.endpoints.JmsProviderEndpoint.processInOut(JmsProviderEndpoint.java:391)
        at org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:109)
        at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:540)
        at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:492)
        at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:621)
        at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)


> New JMS in/out provider should support temporary queues/topics (as reply destinations)
> --------------------------------------------------------------------------------------
>
>                 Key: SM-1621
>                 URL: https://issues.apache.org/activemq/browse/SM-1621
>             Project: ServiceMix
>          Issue Type: Improvement
>    Affects Versions: 3.2.2
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.3, servicemix-jms-2008.02
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.