I am trying to switch from a JMS transport to an HTTP using Sample 250
as a guide.  I am using Oracle AQ as the JMS provider.  When I drop a
message on the queue, Synapse doesn't pick up the message.  However, if
I shutdown Synapse and restart it, it will pick up one message and call
the HTTP Web service succesfully.  It will only pick up one message,
even if there are more on the queue.  The same configuration (changed to
point to ActiveMQ) works as expected.  Any ideas on what might be
causing this?  Has Synapse been successfully used with Oracle AQ?

 

Here's the synapse.xml that I'm using:

 

<definitions xmlns="http://ws.apache.org/ns/synapse";>

    <proxy name="java:comp/env/jms/OutQueue" transports="jms">

        <target>

            <inSequence>

                <property action="set" name="OUT_ONLY" value="true"/>

            </inSequence>

            <endpoint>

                <address
uri="http://localhost:9000/soap/SimpleStockQuoteService";  />

            </endpoint>

            <outSequence>

                <send/>

            </outSequence>

        </target>

        <property name="transport.jms.Destination"
value="java:comp/env/jms/OutQueue"/>

        <publishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>

    </proxy>

</definitions>

 

Here's the JMS portion of the axis2.xml:

 

    <transportReceiver name="jms"
class="org.apache.synapse.transport.jms.JMSListener">

        <parameter name="default">

            <parameter
name="java.naming.factory.initial">oracle.j2ee.naming.ApplicationClientI
nitialContextFactory</parameter>

            <parameter
name="java.naming.provider.url">ormi://localhost:23791/how-to-connect-to
-oemsjmsd</parameter>

            <parameter
name="transport.jms.ConnectionFactoryJNDIName">java:comp/env/jms/PlayerC
onnectionFactory</parameter>

            <parameter name="transport.jms.ConnectionFactoryType"
locked="false">queue</parameter>

            <parameter name="java.naming.security.principal"
locked="false">test</parameter>

            <parameter name="java.naming.security.credentials"
locked="false">test</parameter>

        </parameter>

    </transportReceiver>

 

 

Thanks,

Gregg

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

Reply via email to