You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by "EXT-Mann, Paul R" <pa...@boeing.com> on 2008/02/06 19:35:00 UTC
Unable to determine type of JMS Connection Factory
Hello,
I'm having trouble getting an http message over to jms. Here is the
dump:
SEVERE: Unexpected error during sending message out
org.apache.axis2.AxisFault: Unable to determine type of JMS Connection
Factory - i.e Queue/Topic
at
org.apache.synapse.transport.base.AbstractTransportSender.handleExceptio
n(AbstractTransportSender.java:218)
at
org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:14
4)
at
org.apache.synapse.transport.base.AbstractTransportSender.invoke(Abstrac
tTransportSender.java:95)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutO
nlyAxisOperation.java:265)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
at
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleM
EPClient.java:257)
at
org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseE
nvironment.java:200)
at
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:2
04)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyS
erviceMessageReceiver.java:159)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:275)
at
org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker
.java:226)
at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:19
0)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Here is my proxy:
<proxy name="StockQuoteProxy" transports="http">
<target>
<endpoint>
<address
uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDINam
e=QueueConnectionFactory&
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialCont
extFactory&
java.naming.provider.url=tcp://localhost:61616&
transport.jms.ConnectionFactoryType=queue"/>
</endpoint>
<inSequence>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
As you can see I have added the connection factory type to the proxy. I
also tried this addition in the axis2.xml file with no luck. What am I
missing?
Thanks
Paul Mann
Re: Unable to determine type of JMS Connection Factory
Posted by Upul Godage <up...@gmail.com>.
Hi,
Instead of transport.jms.ConnectionFactoryType=queue could you try,
transport.jms.DestinationType=queue
(transport.jms.ConnectionFactoryType property is used when defining jms
details in axis2.xml)
Hope this helps.
Upul
On Feb 7, 2008 12:05 AM, EXT-Mann, Paul R <pa...@boeing.com> wrote:
> Hello,
>
> I'm having trouble getting an http message over to jms. Here is the
> dump:
>
> SEVERE: Unexpected error during sending message out
> org.apache.axis2.AxisFault: Unable to determine type of JMS Connection
> Factory - i.e Queue/Topic
> at
> org.apache.synapse.transport.base.AbstractTransportSender.handleExceptio
> n(AbstractTransportSender.java:218)
> at
> org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:14
> 4)
> at
> org.apache.synapse.transport.base.AbstractTransportSender.invoke(Abstrac
> tTransportSender.java:95)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> at
> org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutO
> nlyAxisOperation.java:265)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
> )
> at
> org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleM
> EPClient.java:257)
> at
> org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseE
> nvironment.java:200)
> at
> org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:2
> 04)
> at
> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyS
> erviceMessageReceiver.java:159)
> at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
> t(HTTPTransportUtils.java:275)
> at
> org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker
> .java:226)
> at
> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:19
> 0)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
>
> Here is my proxy:
>
> <proxy name="StockQuoteProxy" transports="http">
> <target>
> <endpoint>
> <address
> uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDINam
> e=QueueConnectionFactory&
>
> java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialCont
> extFactory&
>
> java.naming.provider.url=tcp://localhost:61616&
>
> transport.jms.ConnectionFactoryType=queue"/>
> </endpoint>
> <inSequence>
> <property action="set" name="OUT_ONLY" value="true"/>
> </inSequence>
> <outSequence>
> <send/>
> </outSequence>
> </target>
> <publishWSDL
> uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
> </proxy>
>
> As you can see I have added the connection factory type to the proxy. I
> also tried this addition in the axis2.xml file with no luck. What am I
> missing?
>
> Thanks
> Paul Mann
>
>