I need to write a portlet for Liferay 6.1 (Tomcat 7) which requires some background threads for efficiency and completeness.
The portlet app needs to regularly poll for information from an external server before it updates its internal state, and then update the UI if one exists.
I am not sure about the context in which a thread will run in Liferay.