This week's book giveaway is in the Open Source Projects forum. We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line! See this thread for details.
Well it depends on what you are doing. You can create an MBean and deploy it and it will deploy at startup. You can create a Boot at startup Servlet and create the object. If you are creating a Seam app, you can create an Object scoped to Application, and have an @Create method, this will effectively make it a Singleton.