constructor injection
create session before executing in a different thread