At 04:09 PM 9/28/01, S�ren Neigaard wrote:
>What are the differeces between the different scopes?

I don't understand Session scope, but the difference between
Request and Application scope is pretty simple:  Request scope
means each thread in the router servlet has its own copy of
the service class; Application scope means each thread shares
a single instance of the service class.

Therefore in Application scope your service class must be
threadsafe.  If it isn't, you could see problems like the
one below...for example if one thread nulls-out a variable
that another thread tries to use.

-Don


>I have scope set to Application, could that be the reson for this error:
>
>Fault Code   = SOAP-ENV:Server
>Fault String = Exception from service object: SQL=[null]: Unable to create
>query: Java.lang.NullPointerException
>
>It dosn't occur the first time I run it, and maybe not the second time - but
>then it gives this error.
>
>Med venlig hilsen/Best regards
>S�ren Neigaard
>-------------------------------
>Mobilethink A/S
>Arosgaarden
>�boulevarden 23, 5.sal
>DK - 8000 �rhus C
>Telefon: +45 86207800
>Direct: +45 86207810
>Fax: +45 86207801

Reply via email to