My application runs as 2 separate parts, the web module runs in the tomcat container and the data layer runs as a separate java program in a different service and they interact using the database.
I want to access the
ServletContext in the data layer, how can I do this?
When I simply use the
ServletContext in the data layer it gives me an exception