Hello everyone. I model the process in which the tasks of the need to interact with the database. Example: in the control room receives a call. Number is checked against the database. If it is not available then the number is recorded in the database.
Please tell me how to be. In my web application has a class that bdService through hibernate interacts with the database. Can I use it from the task? It may be necessary to implement as it otherwise