Yes, it still only picks up a single message off the OUT_QUEUE at
startup.
-Gregg
-----Original Message-----
From: Asankha C. Perera [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 2:22 PM
To: [email protected]
Subject: Re: Switching transports - JMS to http using AQ
Greg
So.. I am not sure.. do you still have a problem with the attached
config ?
asankha
[EMAIL PROTECTED] wrote:
Ahh, I forgot that I only showed the JMS->HTTP side in my original
email. Here's the synapse.xml I'm using:
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<!-- Introduction to switching transports - JMS to http/s -->
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="http">
<target>
<endpoint>
<address
uri="jms:/java:comp/env/jms/PlayerCommandDestination?transport.jms.Conne
ctionFactoryJNDIName=java:comp/env/jms/PlayerConnectionFactory&java.
naming.factory.initial=oracle.j2ee.naming.ApplicationClientInitialContex
tFactory&java.naming.provider.url=ormi://localhost:23791/how-to-conn
ect-to-oemsjmsd&java.naming.security.principal=MyChannelDemoUser&
;java.naming.security.credentials=MyChannelDemoPassword&transport.jm
s.DestinationType=queue">
<enableAddressing/>
</address>
</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>
<proxy name="JMSProxy" transports="jms">
<target>
<inSequence>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<endpoint>
<address
uri="http://localhost:9000/soap/SimpleStockQuoteService">
<enableAddressing/>
</address>
</endpoint>
<outSequence>
<property action="set" name="Action"
value="urn:placeOrder"/>
<send/>
</outSequence>
</target>
<parameter
name="transport.jms.Destination">java:comp/env/jms/OutQueue</parameter>
<publishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
</definitions>
-----Original Message-----
From: Asankha C. Perera [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 1:57 PM
To: [email protected]
Subject: Re: Switching transports - JMS to http using AQ
Greg
Thanks for all your help so far Ashanka. Sorry for my confusion.
Np! .. thats what this user list is for :-)
Is the scenario you describe below possible using just configuration
via
the synapse.xml file, or is this something that I'm going to need to
write custom services for?
This is possible via just configuring the synapse.xml.. its actually
trivial, instead of just one proxy service, you just define two proxy
services.. one to convert from http->jms and the other for jms->http..
If you still have any issues on this, do let us know and one of us
will
help you more
asankha
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.
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.