What is the most general form of Jensen's inequality? Wikipedia gives for example this more general form, which holds in every topological vector space.

Are there even more general forms, for example dropping continuity assumptions (but keeping measurability/integrability)?

Or are there maybe counterexamples, by which I mean Jensen-like statements which fail if the conditions are too lax?

Any reference would also be welcome.

(Are the tags appropriate?)