简体   繁体   中英

Mule ESB, Synchronize custom java class within flow

I wrote custom java class, a special http connector in the flow with request-response mule-http connector.

在此处输入图片说明

But if there are too many requests calls this flow, an IllegalStateException occured.

As far as i know the data or variables from one thread copies to another thread and I get an IllegalState...

How can I synchronize data in my connector? May I forget to implement some interfaces?

public class MyHTTPConnector {    
...

}

I synchronize all methods in my class and solve the problem. Thanks everyone for assistance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM