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
|
* Furthermore create/connect to DB
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onInit() {
|
public synchronized void onInit() {
|
||||||
RequestFilter requestFilter = new RequestFilter();
|
RequestFilter requestFilter = new RequestFilter();
|
||||||
try {
|
try {
|
||||||
requestFilter.filter(null);
|
requestFilter.filter(null);
|
||||||
|
@ -88,7 +88,7 @@ public class GCatInitializator implements ApplicationManager {
|
||||||
* Furthermore close the connection to DB.
|
* Furthermore close the connection to DB.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onShutdown(){
|
public synchronized void onShutdown(){
|
||||||
RequestFilter requestFilter = new RequestFilter();
|
RequestFilter requestFilter = new RequestFilter();
|
||||||
try {
|
try {
|
||||||
requestFilter.filter(null);
|
requestFilter.filter(null);
|
||||||
|
|
Loading…
Reference in New Issue