
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Talend ESB: Use tHash components in ESB Runtime
Question
Is it safe to use the tHashOutput and tHashInput components in SOAP/REST services or in Jobs called by routes?
Answer
tHashxxx components are not thread-safe and are not supported in Data Services. They are designed to store/keep data/objects in memory and are not recommended for use in the JVM process of the runtime.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello,
If tHash are not thread safe, what other alternative do we have to store data while esb job, real-time data, are running ?
Using cache offers high speed for reading and manipulating the data, efficient solution, but the alternative could be write data on a fileOutput ?

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @jeoste
tHash and tBuffer components are not supported in services Job as they are not thread safe. An alternation is to use the tHSQL components ability to create an in-memory database 'on the fly', but this can have a performance impact and increase the job complexity.
If you tell us more information about the use-case we could give better help.
Regards
Shicong