Adding syncronization
This commit is contained in:
parent
89d3604886
commit
080255e4ec
|
@ -34,7 +34,7 @@ public class GCatInitializator implements ApplicationManager {
|
|||
* Furthermore create/connect to DB
|
||||
*/
|
||||
@Override
|
||||
public void onInit() {
|
||||
public synchronized void onInit() {
|
||||
RequestFilter requestFilter = new RequestFilter();
|
||||
try {
|
||||
requestFilter.filter(null);
|
||||
|
@ -88,7 +88,7 @@ public class GCatInitializator implements ApplicationManager {
|
|||
* Furthermore close the connection to DB.
|
||||
*/
|
||||
@Override
|
||||
public void onShutdown(){
|
||||
public synchronized void onShutdown(){
|
||||
RequestFilter requestFilter = new RequestFilter();
|
||||
try {
|
||||
requestFilter.filter(null);
|
||||
|
|
Loading…
Reference in New Issue