esb

How to handle message order in nservicebus?

左心房为你撑大大i 提交于 2019-12-08 02:53:54
问题 I'm trying to find a way to process messages in the order they were sent from the sender since NServiceBus does not guarantee that messages will be processed in a particular order. The sender is an order system which publishes createOrder and reviseOrder commands. The sender allows the user to submit multiple revisions to the same order so there can be revision 4 and revision 3 in the queue at the same time. Each revision has a revision number and reason code associated with it which drives

Mule ESB download file from URL string

大兔子大兔子 提交于 2019-12-08 01:24:34
问题 So, using Mule ESB, I'm searching Bing for certain PDF files. Then I'm parsing the JSON response to capture the URL of the file location. Now I need to retrieve the file and save locally. Below is what I have so far, but I have a feeling I'm going about this all wrong. How can I complete the use case? I'm having two problems: 1) Can't figure out how to strip "http" from #[message.payload.Url] (since the HTTP Endpoint adds http to the url I'm passing in. 2) Can't figure out how to retrieve the

how to compare integer properties in filter mediation in wso2 esb?

旧巷老猫 提交于 2019-12-07 11:13:14
问题 i am new in wso2 esb and define 3 service that return integer value and use filter mediator to rout from one to another , but not correct work and in filter mode always return false my source is : <sequence xmlns="http://ws.apache.org/ns/synapse" name="SeqOne"> <log level="full"/> <property xmlns:ns="http://org.apache.synapse/xsd" xmlns:m0="http://tempuri.org/" name="CParam" expression="//m0:SumSerViseResponse/m0:SumSerViseResult" scope="default" type="INTEGER"/> <log level="custom">

Parse JSON in Mule 3.2 Flow

你离开我真会死。 提交于 2019-12-07 09:49:25
If I have the following JSON [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 }, { "category": "fiction", "author": "Herman Melville", "title": "Moby Dick", "isbn": "0-553-21311-3", "price": 8.99 }, { "category": "fiction", "author": "J. R. R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99 } ] I can get the price of "Moby Dick" using the following JSONPath: $..[?(@.title=='Moby Dick')].price RESULT: '0' => "8

Administration and Monitoring of Apache-Camel routes in ServiceMix

孤街浪徒 提交于 2019-12-07 03:25:16
问题 Being a user of Camel and ServiceMix I frequently need to monitor those tools for development purposes. I mainly use JConsole to access MBeans from ServiceMix and Camel. It gives a few really helpful metrics for an ESB developer. I also use karaf (web)console to track my route and bundles status. Looking around StackOverflow I found an interesting link that explains how to setup Hyperic HQ for ServiceMix 4: Monitoring Servicemix with Hyperic HQ. Are they other tools you would consider worthy

How can i get HEADER in my ESB i am using following property, its not not working

我是研究僧i 提交于 2019-12-06 21:09:30
i am getting the data from mobile client they are sending data in JSON as well as sending some values as HEADER to WSO2ESB i am getting normal values using this property <property name="asset" expression="//asset/text()" scope="default"/> but how can i get HEADER in my ESB i am using this property its not not working <property name="username" expression="get-property('transport', 'Accept')"/> how it will work will you revert me as soon as Thanks in advance if what you are trying to access is 'username', the configuration should be: <property name="some_name_here" expression="get-property(

Mule ESB 3 Transactional Flow Single Jdbc Resource Not Rolling Back (MSSQL & jtds)

偶尔善良 提交于 2019-12-06 15:57:55
问题 EDIT : This only happens with MSSQL & jtds 1.2.6 Still investigating... **Duplicate of : Mule 3.3.0 Jdbc Transaction Undesired Commit **Mule Documentation sucks. I want to rollback everything inside a flow that has several database endpoints. I have a single JDBC datasource resource (i.e. no need for fancy XA, 2PC, etc). I have managed to configure Mule to, at least, not complain that no Transaction Manager is configured, etc.... but: It doesn't work; i.e it does not rollback the transaction

convert xml to soap request using xslt transformation in mule

半世苍凉 提交于 2019-12-06 15:16:11
问题 How to convert xml to soap message using XSLT in mule? I am using mule community addition so I can't use mule datamapper. Can any one help me how to convert xml to soap message using XSLT tranformation? I have below xml: <file> <header> <documentType>CEN_ORD</documentType> <version>1.0</version> <createDate>01/01/15 02:11</createDate> <originator>IKEA</originator> <timeZone>PST</timeZone> <dateFormat>MM/dd/yy HH:mm</dateFormat> <currencyFormat>USD</currencyFormat> <weightUnits>lbs<

getting inbound properties of ESB Mule message using Groovy

五迷三道 提交于 2019-12-06 15:15:13
I have groovy transformer component which is to get the inbound properties and set it in the flow vars as like below. if(message.inboundProperties.'http.query.params'.Brand != null){ flowVars ['Brand'] = message.inboundProperties.'http.query.params'.Brand } return payload; But I am getting below specified error. It seems inboundProperties are not in the scope of groovy. Can you please tell me how to access inbound properties in groovy. Note : I dont want to alter the payload. My aim is to create the flowVars based on queryparms. Part of Error : No such property: inboundProperties for class:

Singleton Startup Mule Component/Flow

故事扮演 提交于 2019-12-06 06:35:14
问题 I have a running Mule application I am using in my project. What I would like to do is add some component that would clear some database table everytime the Mule server is started up. What would be the component to use in this matter? Preferably I'd like it to happen from XML and not some Java component I have to write (JDBC and such) Thanks! 回答1: Done with: A notification listener to be informed when Mule is initialized, Implemented in Groovy so all code is in the XML config, A JDBC endpoint