mule-component

Service is not initialize while embeding tomcat with mule esb

倖福魔咒の 提交于 2019-12-12 06:06:06
问题 I follow all the steps define in the following link http://www.mulesoft.org/documentation/display/current/Deploying+Mule+as+a+Service+to+Tomcat Instead of > <Listener > className="org.mule.config.builders.MuleXmlBuilderContextListener" /> I used > **<Listener className="org.mule.module.tomcat.MuleTomcatListener" />** And my tomcat also started. I also deploy my war file into webapps folder. I didn't get any error while deploying war file.. But problem is my service didn't initialize..

How to pass Headers using HTTP component in Mule

强颜欢笑 提交于 2019-12-12 05:59:27
问题 Hi I am working with Any Point Studio and i want to pass headers with the current request with a key value pair How to achieve that using existing HTTP Component. 回答1: You can invoke the HTTP Inbound through Mule Client, here is an example: MuleClient muleClient = new MuleClient(muleContext); Map<String, Object> headers = new HashMap<String, Object>(1); headers.put("key", "456453N123"); MuleMessage result = muleClient.send("http://localhost:8081/prm", PAYLOAD, headers); The HTTP headers are

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

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

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> <

Mule ESB: Are the Log4j Config for Batch in Mule need separate configuration?

≡放荡痞女 提交于 2019-12-11 22:50:13
问题 I have log4j config file, it seems to be working for normal flows, but when comes to batch it is not working, not sure what has to added in config file in specific to batch. Please help on this issue <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="C:\Users\Logs.log" /> ............ <layout class="org.apache.log4j.PatternLayout"> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO" /> <param name=

to make until successful synchronous in mule 3.4

坚强是说给别人听的谎言 提交于 2019-12-11 20:36:40
问题 Below is a part of my mule flow <until-successful objectStore-ref="ObjStreuntil" maxRetries="60" secondsBetweenRetries="60" doc:name="Until Successful" failureExpression="# [payload.state == 'Queued' || payload.state == 'InProgress']"> <processor-chain doc:name="Processor Chain"> <sfdc:batch-info config-ref="Salesforce" doc:name="Salesforce"> <sfdc:batch-info ref="#[payload]"/> </sfdc:batch-info> <logger message="#[payload]" level="INFO" doc:name="Logger"/> </processor-chain> </until

Blocking=“false” is not working in JDBC Reconnection in 3.4.2

亡梦爱人 提交于 2019-12-11 19:26:02
问题 In JDBC Reconnection strategy implemented blocking as false.. so when we try to deploy the application, even though JDBC connection fails applicaion should be deployed.But Application is not getting deployed in server. Following is the xml code <jdbc-ee:connector name="FTPDatabase" dataSource-ref="MySQL_FTP_Data_Source" validateConnections="true" queryTimeout="-1" pollingFrequency="0" doc:name="Database"> <reconnect blocking="false" frequency="10000" count="3"/> </jdbc-ee:connector> 回答1: In

how to achieve retry mechanism for ftp outbound end point using vm transaction?

我怕爱的太早我们不能终老 提交于 2019-12-11 13:16:38
问题 We have tried like using vm as outbound in flow1 and inbound in flow2. In flow2 we are using FTP as outbound end point and we have enabled the vm transaction even then also its not working. Do we need to enable transaction for retrying? As per below question we tried using transaction how to make until successful as synchronous to retry mechanism for FTP Outbound in mule 3.4.2 could you please help me out in resolving this issue?? <flow name="FTPFlow1" doc:name="FTPFlow1"> <set-payload doc