So I took @Kayaman's advice. And tried to limit the use of objects in their respective layers i.e. using context in the presentation layer and the Hibernate Session in the Data Access Layer.
I passed the call from the Controller to the DAO and store the needed objects in a global map in the DAO which were later called for further processiong. And finally returned the signals back to the Presentation layer.
Asked in February 2016Viewed 1,546 timesVoted 12Answered 1 times