How can I tell if Wurfl has initialized correctly
Posted: Mon May 27, 2013 6:22 am
Hi all,
Im using WURFL in a Java web application and Im using the standard web.xml entry to allow Wurfl initialize itself using "net.sourceforge.wurfl.core.web.WURFLServletContextListener".
If for some reason the files specified (wurfl.zip and wurfl_patch.xml) in the web.xml dont exist on server startup, WURLF seems to get itself into a state.
When the app starts processing requests, I call
WURFLManager manager = wurfl.getWURFLManager();
for each request.
The first time this is called and exception is throw which is expected and I handle this. However, the second and future calls just seem to hang and wait.
There doesnt seem to be any way to see that Wurfl has not been initialized properly.
This will call all future thread to hang and bring down the server - is there something I am missing here?
Thanks,
Barry.
Im using WURFL in a Java web application and Im using the standard web.xml entry to allow Wurfl initialize itself using "net.sourceforge.wurfl.core.web.WURFLServletContextListener".
If for some reason the files specified (wurfl.zip and wurfl_patch.xml) in the web.xml dont exist on server startup, WURLF seems to get itself into a state.
When the app starts processing requests, I call
WURFLManager manager = wurfl.getWURFLManager();
for each request.
The first time this is called and exception is throw which is expected and I handle this. However, the second and future calls just seem to hang and wait.
There doesnt seem to be any way to see that Wurfl has not been initialized properly.
This will call all future thread to hang and bring down the server - is there something I am missing here?
Thanks,
Barry.