I am using Websphere Application Server to create a typical web application where UI is JSPs, there is a Controller and a session EJB and a Database. I implemented a notification system which runs in the backround as a separate thread. I used WorkManager for that purpose.
My problem is, I want to start the WorkManager without having to create a session or an EJB instance for every single of the parallel sessions started by different users. It should not be session based. Right now, the WorkManager thread kicks off when the EJB is instantiated, so if there are 3 connections, there are 3 WorkManager instances.
单州会议是否好? 或者,在什么地方,我可以采用一种主要()方法,称为或其他类似方法?
任何想法都会受到赞赏。