Passing Request Object into Service Layer
Posted
by SpringTrickery
on Stack Overflow
See other posts from Stack Overflow
or by SpringTrickery
Published on 2010-04-30T10:42:11Z
Indexed on
2010/04/30
10:47 UTC
Read the original article
Hit count: 176
spring-mvc
In a spring mvc + spring core app, we have have a view layers, a facade, a service layer, a dao layer and a stored-proc based persistance layer.
The service layer is unaware of the clients that utilitize its methods. Is it fine to propagate raw http requests into the service layer? Or is it bad practice and a violation of the loose coupling principles?
If it is, then what's a clean workaround?
© Stack Overflow or respective owner