JBoss AS Question: Download JBoss PDF

Is the Session Factory Thread safe?

Tweet Share WhatsApp

Answer:

Yes: that is many threads can access it cuncurrentely and request for sessions. It holds cached data that has been read in one unit of work and may be reused in a future unit of work. Good practice is to create it when the application is initialized.

Download JBoss PDF Read All 31 JBoss Questions
Previous QuestionNext Question
Which Hibernate object wraps the JDBC Connection?How can you start a JTA transaction from a Servlet deployed on JBoss?