You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ho, Wen Yue" <We...@tdsecurities.com> on 2007/01/23 20:26:15 UTC
Session Connection pooling in Axis2 WS
Hi,
I have a legacy system that provides an API to access the system thru
their own Session object.
I need to pool this session objects within my web services developed
using Axis2.
Correct me if I'm wrong.
AFAIK, Axis2 by default will make one thread per request to the web
service.
I think this means singleton class won't work, since one thread will
instantiate one singleton.
Any advice on how to do this?
Thanks in advance.
********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.
If the above disclaimer is not properly readable, it can be found at
www.td.com/legal
AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
nêtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation dune partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement lexpéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.
Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à www.td.com/francais/legale
Re: Session Connection pooling in Axis2 WS
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Ho, Wen Yue ;
You can solve the problem by deploying the service in application scope.
Then there will be only one instance of the serviceimpl class.
Thanks
Deepal
> Hi,
> I have a legacy system that provides an API to access the system thru
> their own Session object.
> I need to pool this session objects within my web services developed
> using Axis2.
> Correct me if I'm wrong.
> AFAIK, Axis2 by default will make one thread per request to the web
> service.
> I think this means singleton class won't work, since one thread will
> instantiate one singleton.
> Any advice on how to do this?
> Thanks in advance.
>
>********************
>NOTICE OF CONFIDENTIALITY
>This communication including any information transmitted with it is
>intended only for the use of the addressees and is confidential.
>If you are not an intended recipient or responsible for delivering
>the message to an intended recipient, any review, disclosure,
>conversion to hard copy, dissemination, reproduction or other use
>of any part of this communication is strictly prohibited, as is the
>taking or omitting of any action in reliance upon this communication.
>If you receive this communication in error or without authorization
>please notify us immediately by return e-mail or otherwise and
>permanently delete the entire communication from any computer,
>disk drive, or other storage medium.
>
>If the above disclaimer is not properly readable, it can be found at
>www.td.com/legal
>
>AVERTISSEMENT DE CONFIDENTIALITE
>Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
>aux destinataires susmentionnés, est confidentiel. Si vous
>n’êtes pas le destinataire prévu ou un agent responsable de la
>livraison de ce courriel, tout examen, divulgation, copie, impression,
>reproduction, distribution, ou autre utilisation d’une partie de ce
>courriel est strictement interdit de même que toute intervention ou
>abstraction à cet égard. Si vous avez reçu ce message par erreur ou
>sans autorisation, veuillez en aviser immédiatement l’expéditeur par
>retour de courriel ou par un autre moyen et supprimer immédiatement
>cette communication entière de tout système électronique.
>
>Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
>pouvez le consulter à www.td.com/francais/legale
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org