wurfl thread-safe usage

jluis
Posts: 2
Joined: Tue Feb 21, 2012 12:55 pm

wurfl thread-safe usage

Postby jluis » Tue Feb 21, 2012 12:59 pm

Hello,

I'm developing a Java Web Application that uses WURFL.

The WURFLHolder creation and initialization is done at startup (just one time).

When a client sends a request the following code is executed:

Code: Select all

WURFLHolder wurflHolder = //code to retrieve te WURFLHolder
WURFLManager wurflManager = wurflHolder.getWURFLManager();
Device device = wurflManager.getDeviceForRequest(request);
String screenHeight = device.getCapability("physical_screen_height");
Multiple clients can send requests concurrently so, is this code thread safe?

Thank you

fulvio.crivellaro
Posts: 38
Joined: Tue Jan 31, 2012 10:27 am

Re: wurfl thread-safe usage

Postby fulvio.crivellaro » Wed Feb 22, 2012 4:37 am

Hello.
Yes, code is of course Thread safe!

Fulvio

jluis
Posts: 2
Joined: Tue Feb 21, 2012 12:55 pm

Re: wurfl thread-safe usage

Postby jluis » Wed Feb 22, 2012 9:14 am

Thank you very much for the help.

It would be great to have some notes about "thread-safety with WURFL" in the documentation. Or perhaps I'm missing something?

Bye

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: wurfl thread-safe usage

Postby kamermans » Wed Feb 22, 2012 10:45 am

We're doing a documentation overhaul for our products, so we will certainly take this into consideration.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 17 guests