mule

how to make until successful as synchronous to retry mechanism for FTP Outbound in mule 3.4.2

谁说我不能喝 提交于 2019-12-20 06:39:09
问题 I used retry mechanism for outbound FTP by using Untill successful. It is working fine but it is working as asynchronously in mule 3.4.2.I have seen synchronous option is avaliable in 3.5. is it possible to make untill successful scope working as synchronous in 3.4.2 version? if possible could u please provide me the solution? or else any other solution to use retry mechanism for outbound FTP? <until-successful objectStore-ref="objectStore" maxRetries="3" secondsBetweenRetries="1" doc:name=

Mule method cannot be cast to string

六眼飞鱼酱① 提交于 2019-12-20 06:27:23
问题 i'm very new to mule studio. This is the environements setup. VM1 = Windows 7, Visual Studio 2012, IIS 7. A .net 4.5 WCF webservice hosted in IIS7 that has an operation that accepts a string and returns a string. VM2 = Ubuntu 13.4 OpenJDK 1.7.0_25 Mule Studio 3.5 Community Edition. I created a JAXWS-Client with an outbound endpoint, I did this by clicking the generate from WSDL and entering the url of the .net WCF webservice hosted in IIS on VM1 . That was fine. I then created an inbound

NoClassDefFoundError: javax/validation/Validation occurs even validation-api 1.1.0.Final in the POM

醉酒当歌 提交于 2019-12-20 06:26:06
问题 Looks strange... I have exception trace: org.apache.cxf.interceptor.Fault at org.mule.module.cxf.MuleInvoker.invoke(MuleInvoker.java:117) at org.mule.module.cxf.MuleJAXWSInvoker.invoke(MuleJAXWSInvoker.java:47) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask

Mule - How to do a choice/when based on http response codes?

て烟熏妆下的殇ゞ 提交于 2019-12-20 06:17:03
问题 I need to be able to perform certain actions based on the http response code I get back from an http outbound endpoint. For instance if I get a 500 error or a 302 redirect or a 200. I need a way to evaluate the 500, 302, 200. I know how to use Choice-When, but don't know how to access the response code using groovy or whatever you suggest. 回答1: You can get the HTTP response code with the following expression right after the HTTP outbound endpoint: #[message.inboundProperties['http.status']]

csv to xml: not sure the best way to do it in Mule ESB

吃可爱长大的小学妹 提交于 2019-12-20 06:15:27
问题 I'm new to Mule, so bear with me. I have the following CSV file that I receive: Company1,2,123 Street,Winchester,UK "000010","CHRISTINE","I","HAAS","A00","3978","1995-01-01","PRES",18,"F","1963-08-24",152750.00 "000020","MICHAEL","L","THOMPSON","B01","3476","2003-10-10","MANAGER",18,"M","1978-02-02",94250.00 The first line, header, contains company info plus the number of records (number of employees) in CSV file (second parm in the header). Now I need to convert it to the following XML: <

Mule HTTPS connector that trusts all certificates

≡放荡痞女 提交于 2019-12-20 06:04:48
问题 I'm writing integration tests for a Mule ESB application. The Mule application connects to a third-party API via HTTPS. When I try to run my application against the third-party testing API endpoint, everything works fine and I don't have to add any client specific SSL configuration to the HTTPS connector. I believe this is due to the fact their server has CA signed certificates, hence they're trusted straight away and e.g. an HTTP connector like this <https:connector name="my.https.connector"

Why does Mule FTP connector doesn't delete file when streaming is enabled

霸气de小男生 提交于 2019-12-20 04:38:24
问题 This is the relevant part of my mule-config <ftp:connector name="ftp.connector" streaming="true"/> <flow name="ftp2file"> <ftp:inbound-endpoint connector-ref="ftp.connector" host="xxx" port="21" path="/path" user="test" password="test"/> <file:outbound-endpoint path="/newPath" outputPattern="#[header:originalFilename]"/> </flow> Files on FTP server gets deleted when streaming is disabled but files stays on in my case when streaming is enabled. I've 2 questions: Why is behavior internally

Java/Mongodb authentication

北城以北 提交于 2019-12-19 11:36:11
问题 I saw a lot of tutorials showing how to auth in mongodb using Java I have my mongodb configured with auth enabled. In console I use use admin db.auth("myUser","newPassword") and works well. and in java In every sites visited the code is Mongo mongo = new Mongo("localhost", 27017); DB db = mongo.getDB("myBase"); boolean auth = db.authenticate("myUser", "newPassword".toCharArray()); //auth is true if everithing went well The BIG problem is that code doesn't work for me and I don't know why. I

Java/Mongodb authentication

强颜欢笑 提交于 2019-12-19 11:35:56
问题 I saw a lot of tutorials showing how to auth in mongodb using Java I have my mongodb configured with auth enabled. In console I use use admin db.auth("myUser","newPassword") and works well. and in java In every sites visited the code is Mongo mongo = new Mongo("localhost", 27017); DB db = mongo.getDB("myBase"); boolean auth = db.authenticate("myUser", "newPassword".toCharArray()); //auth is true if everithing went well The BIG problem is that code doesn't work for me and I don't know why. I

Start/Stop Flow/Endpoint in Mule 3.3.0

南笙酒味 提交于 2019-12-19 11:24:43
问题 I need to programmatically start or stop a flow or endpoint from another flow. Can this be done? Is there risk of message loss? <flow name="control> <vm:inbound-endpoint path="in"> <script:component> <!-- start/stop --> </script:component> </flow> <flow name="startable-stoppable> <any-transport:inbound-endpoint/> <component/> </flow> 回答1: After some research I've found that the best option in my case is to start/stop the connectors associated with the endpoints I want to control. <script