and store it somewhere static. It takes quite some time to create a DbSessionFactory,
but you only have to do it once. After that, creating DbSession's is really fast.
org.jbpm.tc.ContextBuilderorg.jbpm.tc.db.JbpmSessionContext
creates a DbSession around the given connection. Note that you are
responsible for closing the connection so closing the DbSession will
not close the jdbc connection.