Hi all,
I sometimes need to access the datasource within the service layer and by
default only Action classes have access to it. In order to solve this issue,
I plan to write a plugin which will get the datasource and the
servletcontext at startup and store them in the service layer as static
variables. Thus, I will be able to access to datasource and servletcontext
within my service methods.
Is this a good practice? Are there any known incoveniences?

Reply via email to