ntumba lobo wrote:My mistake, I was meant to say the Persistence tier instead of the resource tier.
the persistence tier contains logic to access your internal resources in the resource tier.
Thank you for the answer. Anyway, I wouldn't use terms like "resource tier" or "persistence tier"; let's stick to the mentioned 5 tiers, especially the 3 according to
Java EE
patterns.
So, "persistence tier" is part of "integration tier" I guess. More general for "Resource tier" is maybe "EIS tier". The question is still: where does the exposed web service goes? If it is the web service broker, then it should be located to integration tier. But according to my understanding the integration tier makes practically the connection between business tier and EIS tier.
The original question is still open: if there is a business logic, implemented in the business tier, exposed in to 2 different means: one as web GUI (accessed through web tier - or maybe "presentation tier"? - which is the correct?) and the other is via web service. In that case in which tier goes the external system? (I would say 80% to the client tier and 20% to the EIS tier.) And what is the right location of the exposed web service? (According to the implementation usually it is mixed up with the business tier components, but logically, is it business or integration tier component? My current guess is somewhat 60% business tier and 40% integration tier.)