Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring & Tika integration: is my approach thread-safe?

I'm interested in Spring & Apache Tika integration. Is this approach thread-safe?

<bean id="tika" class="org.apache.tika.Tika"/>

Can I safely call detect() method from different threads?

Are there any Spring-Tika integration patterns?

Thanks in advance.

like image 262
Maciej Ziarko Avatar asked Apr 17 '12 12:04

Maciej Ziarko


1 Answers

According to this http://comments.gmane.org/gmane.comp.apache.tika.user/677

and this

http://issues.liferay.com/browse/LPS-15824

and this

http://web.archiveorange.com/archive/v/99aTkiOCyApHaqASS5CS

it would suggest yes.

Though there have been bugs with the thread safety

https://issues.apache.org/jira/browse/TIKA-599

like image 144
rado Avatar answered Nov 10 '22 12:11

rado