Hi Asankha,
This is my synapse.xml
-----------------------------------------------------------------------
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="LawSchoolProxy" transports="jms" trace="enable">
<target>
<inSequence>
<log level="full">
<property name="Text" value="Sending
request to Law School - "/>
</log>
<send>
<endpoint>
<!--<address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>-->
<address
uri="http://10.10.10.73:8080/web/LawSchoolService"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<log level="full">
<property name="Text" value="Getting
response from Law School - "/>
</log>
<send/>
</outSequence>
</target>
<!--<publishWSDL
uri="http://localhost:9000/soap/SimpleStockQuoteService?wsdl"/>-->
<publishWSDL
uri="http://10.10.10.73:8080/web/LawSchoolService?wsdl"/>
</proxy>
<!-- This is Business School Proxy -->
<proxy name="BusinessSchoolProxy" transports="jms" trace="enable">
<target>
<inSequence>
<log level="full">
<property name="Text" value="Sending
request to Business School - "/>
</log>
<send>
<endpoint>
<address
uri="http://10.10.10.67:8081/web/BusinessSchoolService"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<log level="full">
<property name="Text" value="Getting
response from Business School -
"/>
</log>
<send/>
</outSequence>
</target>
<publishWSDL
uri="http://10.10.10.67:8081/web/BusinessSchoolService?wsdl"/>
</proxy>
<!-- This is fault sequence-->
<sequence name="fault">
<makefault>
<code value="tns:Receiver"
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
<!-- Error message-->
<reason expression="get-property('ERROR_MESSAGE')"/>
</makefault>
<send/>
</sequence>
</definitions>
---------------------------------------------------------------------------
I have created two Web Services.I am passing my request to Synapse.xml,If
Web Services are up it sends a response back.i have created an independent
JMS Client and have the jar of it.But i want if Web Services are down it
should go to fault sequence and call that jms client.SO how to call this jms
client using .jar file of it.
Regards
Abhishek
Asankha C. Perera wrote:
>
> Hi Anhishek
>> Thankx for the Code.It was really helpful.
>>
> Good to hear!
>> Hey our requirements have changed a bit now.I am implementing JMS Client
>> with synapse.So my Synapse.xml now have two proxies calling two web
>> services
>> and in the fault sequence i want to call JMS Client.So how to do this??
>>
> I do not understand your requirement clearly.. I see that your client
> now uses JMS, would it or other clients send a SOAP/JMS message, XML/JMS
> message (this is what I think you are doing), or other types of messages
> to the proxies? What does the proxy services (now listening over JMS) do
> with messages they receive? Do they forward them to other JMS services?
> or SOAP/XML services over HTTP?
>
> Also what is your expectation from the fault sequence here? If you
> directly state your business problem/requirement, I can help you with
> the technical solution
>> And JMS Client I am creating seperately .The code for that is :
>> ------------------------------------------------------------------------------
>> ...
>> I am creating two queues as i have two web services at both ends of it.
>> BUt in this particular line :
>> QueueConnectionFactory myQConnFactory = (QueueConnectionFactory)
>> ctx.lookup(QCF_NAME);
>>
>> It throws an error javax.naming.namenotfoundexception.How to resolve it?
>>
> This code seems to run outside of the Synapse engine.. also the problem
> you have encountered is a straightforward JMS issue.. your JNDI does not
> contain a reference with the name QCF_NAME. Check your JMS providers
> documentation/samples for more information. It may be required that you
> manually create this connection factory on your JMS server with this
> name first
>
> cheers
> asankha
>
> --
> Asankha C. Perera
> http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
--
View this message in context:
http://www.nabble.com/Invoking-Synapse-from-Non-Axis-2-Client-tp21970007p22197219.html
Sent from the Synapse - User mailing list archive at Nabble.com.