This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have an application that I have been working on for the past year. It has mulple threads which may or may not open telnet session to a same ip address. I am using singleton as a central registry to block a tread from opening a telnet session to an ip address which may be in use by another telnet session spawned by another thread. I am trying to port over some of the business logic to EJB. How would you address singleton and concurrency issues I have in EJB?