mule-studio

can Mule HTTP out-bound handler redirect requests?

一个人想着一个人 提交于 2019-12-12 04:39:58
问题 i am using http component of mule as a outbound to call a rest service which is sending a '307' redirect request , and HTTP endpoint is not handling the redirect request . what i mean is, HTTP component is not handling the redirect request to another URL .like, other HTTP clients like Apache etc are handling ! is it the expected behavior of the end point or am i doing anything wrong . INFO 2015-01-06 15:13:23,193 [[test].connector.http.mule.default.receiver.04] org.mule.transport.http

Mule - make Global Elements more global

寵の児 提交于 2019-12-12 04:35:11
问题 In mule I have many applications running on the same container that access a jdbc connector with the same connection string/user/password set. Of course any app has configured the same global connector in its xml configuration file, so there is code duplication. Is there a way to define only once per container the connection and access it from any app? 回答1: I would try this: have one app create the datasource and store it in JNDI and have the other apps pick it up from JNDI. Since there is no

Defining various DB & Salesforce access information in Mule Anypoint Studio

假如想象 提交于 2019-12-12 04:08:43
问题 I am running Mule Anypoint studio v6.2.4 under Windows. I have an application which gets data records from a SQL Server DB and populates them into Salesforce Org. The application was developed using examples and works fine in the current scenario of one DB and one SF parameters defined in mule.{mule.env}.properties file. Now I need to access a different DB for input records and populate them to a different Salesforce org. Changing the access parameters in properties file every time is tedious

ObjectStore connector retrieve issue in mule

ε祈祈猫儿з 提交于 2019-12-12 03:47:29
问题 I have one flow(A) with poll as source with transformation logic and storing result data in Mule Object Store Connector by overwriting latest value. Whenever I tried to retrieve(Using ObjectStore connector) the value in another flow(B). Note : Flow(B) is not called from flow A. I am able to get the value out of it for the first time. For the next time whenever It polls we should get the latest value and we are getting latest value in Flow A. whenever we are retrieving(Using ObjectStore

How to print record values without repeating certain fields in dataweave in CSV format based on specific conditions

巧了我就是萌 提交于 2019-12-12 03:46:51
问题 Please consider the following input sample in CSV Company,FirstName,LastName,Email Rate,Manule,Reaya,Reaya@egetmetus.org Rate,sholy,Bonvgy,Bonvage@mollis.org The output should be as follows : Company,FirstName,LastName,Email Rate,Manule,Reaya,Reaya@egetmetus.org ,sholy,Bonvgy,Bonvage@mollis.org The condition would be : if the company name repeats for different records in the input, it should be null in output CSV. Please let me know if this can be handled in Dataweave component in Mule Below

read file from SFTP and dump to local folder using mulesoft

孤人 提交于 2019-12-12 03:35:18
问题 Can someone provide me an mulesoft xml where the flow is reading files from SFTP location and dumping it to the local directory. I have written following code but it does not work: subflow : <sub-flow name="loadFtpFile"> <logger message="Load FTP File: #[flowVars.fileName]" level="INFO" doc:name="Load FTP File"/> <logger message="#[payload]" level="DEBUG" doc:name="Log Payload"/> </sub-flow> And the flow is : <flow name="readFTP"> <logger message="Read FTP file" level="INFO" doc:name="Read

Was there a way to remove MULE Session on Mule 3.7 or later?

£可爱£侵袭症+ 提交于 2019-12-12 03:28:40
问题 On the previous version of mule we could aways add, <service-overrides sessionHandler="org.mule.session.NullSessionHandler"/> for removing the mule session for http connector, but how can you remove the mule session for http request(newer version of http connector) 回答1: You could just try removing the MULE_SESSION header before the outbound call: <remove-property propertyName="MULE_SESSION" /> 来源: https://stackoverflow.com/questions/35978104/was-there-a-way-to-remove-mule-session-on-mule-3-7

Mule: How to print the file name in logger?

大兔子大兔子 提交于 2019-12-12 02:39:30
问题 I want to print the mule configuration file name, in the logger in the flow, how can I get it? Suppose the configuration file name in test.xml, inside that a flow is having logger, which prints test.xml , how can I get this? <flow name="filenameFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/Hello" doc:name="HTTP"/> <logger message="#[app.name.toString()]" level="INFO" doc:name="Logger"/> </flow> 回答1: [name.flow] is not correct one. you should go with #[flow.name] which

Not able to do retry with 'db: generic-config' in 3.5.1 version Mule ESB

你说的曾经没有我的故事 提交于 2019-12-12 01:47:40
问题 Since DB (Using db: generic-config) Global Connector don't have reconnect strategy. I'm externally trying to set the reconnect Strategy as mentioned in the link http://www.mulesoft.org/documentation/display/35X/Configuring+Reconnection+Strategies. After selecting the configuration, it allows me to set the reconnect, once after selecting. It is giving error like 'Element: is not allowed to be child of element configuration' Please find the config <configuration > <reconnect></reconnect> <

Customised mule component that creates streamed payload?

无人久伴 提交于 2019-12-11 23:11:08
问题 I am trying to find the simplest and quickest way of creating streamed payload in a mule flow. Ideally this would be a java component. The whole reason is I have a datamapper right next to this and mapping in stream mode. So I would prefer this payload will be a streamed pojo collection. I have tried just implement the Callable interface, but it seems difficult for me to find a proper way to output a stream payload and let Mule go on processing next step in flow while with this stream. Thanks