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 Arlindo Luis Marcon Junior <ar...@gmail.com> on 2007/12/10 14:47:06 UTC
Service Life Cicle
Hi All
I have a litlle problem here... ( newbie )
I'm created a Web Service,,, ( one cliente and one service with AXIOM
)... In the first invocation everything works fine...
but,,, if I try make a second or third invocation I perceived that Axis2
1.3 retained the variables of the preceding call...
(TomCat 6.0.14, JDK 1.6)
I tried change the 'scope' parameter in my service.xml (eg: request ),,,
but nothing...
I need something like a new instance each time,,, a new execution with
no parameters...
Axis2 can make this, or I need restart my variables when my servive
receive a new request...
Can Someone, please, give-me a direction... ( an sample, an tutorial )
Many Thanks in Advance
( sorry my english )
--
Arlindo Luis Marcon Junior
E-mail: arlindomarconjr@gmail.com
Internet Web Page: http://lattes.cnpq.br/6483462042489662
ICQ: 138864173
Curitiba - ParanĂ¡ - Brasil
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: Service Life Cicle
Posted by Ove Gram Nipen <ov...@delfidata.no>.
* Deepal Jayasinghe [mailto:deepal@opensource.lk] wrote:
> Any possibility of looking at your service , then may be I
> can help you on this.
Hi,
Michele replied to me off-list. It seems that the problem was that he
had static variables in his service implementation.
--
Regards,
Ove Gram Nipen
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Service Life Cicle
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Any possibility of looking at your service , then may be I can help you
on this.
-Deepal
> Hi All
>
> I have a litlle problem here... ( newbie )
> I'm created a Web Service,,, ( one cliente and one service with AXIOM
> )... In the first invocation everything works fine...
> but,,, if I try make a second or third invocation I perceived that
> Axis2 1.3 retained the variables of the preceding call...
> (TomCat 6.0.14, JDK 1.6)
>
> I tried change the 'scope' parameter in my service.xml (eg: request
> ),,, but nothing...
> I need something like a new instance each time,,, a new execution with
> no parameters...
> Axis2 can make this, or I need restart my variables when my servive
> receive a new request...
>
> Can Someone, please, give-me a direction... ( an sample, an tutorial )
>
> Many Thanks in Advance
> ( sorry my english )
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
SV: Service Life Cicle
Posted by Ove Gram Nipen <ov...@delfidata.no>.
Hi, Arlindo!
Is it possible that you have stored data in static fields (class variables) in your service implementation? For an explanation about the difference between instance and class variables, see http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html
Please forgive me if this is second nature to you :)
--
Regards,
Ove Gram Nipen
________________________________
Fra: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
Sendt: ma 10.12.2007 15:03
Til: axis-user@ws.apache.org
Emne: Re: Service Life Cicle
Arlindo,
you probably messed around the configuration -- by default axis2
services run in request scope, which means that every invocation has
it's instance.
Please see the links below:
http://wso2.org/library/259
http://www.developer.com/open/print.php/10930_3589126_3
http://www.developer.com/java/web/article.php/3620661
Michele
On 10 Dec 2007, at 13:47, Arlindo Luis Marcon Junior wrote:
> Hi All
>
> I have a litlle problem here... ( newbie )
> I'm created a Web Service,,, ( one cliente and one service with
> AXIOM )... In the first invocation everything works fine...
> but,,, if I try make a second or third invocation I perceived that
> Axis2 1.3 retained the variables of the preceding call...
> (TomCat 6.0.14, JDK 1.6)
>
> I tried change the 'scope' parameter in my service.xml (eg:
> request ),,, but nothing...
> I need something like a new instance each time,,, a new execution
> with no parameters...
> Axis2 can make this, or I need restart my variables when my servive
> receive a new request...
>
> Can Someone, please, give-me a direction... ( an sample, an tutorial )
>
> Many Thanks in Advance
> ( sorry my english )
>
> --
> Arlindo Luis Marcon Junior
> E-mail: arlindomarconjr@gmail.com
> Internet Web Page: http://lattes.cnpq.br/6483462042489662
> ICQ: 138864173
> Curitiba - ParanĂ¡ - Brasil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Service Life Cicle
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Arlindo,
you probably messed around the configuration -- by default axis2
services run in request scope, which means that every invocation has
it's instance.
Please see the links below:
http://wso2.org/library/259
http://www.developer.com/open/print.php/10930_3589126_3
http://www.developer.com/java/web/article.php/3620661
Michele
On 10 Dec 2007, at 13:47, Arlindo Luis Marcon Junior wrote:
> Hi All
>
> I have a litlle problem here... ( newbie )
> I'm created a Web Service,,, ( one cliente and one service with
> AXIOM )... In the first invocation everything works fine...
> but,,, if I try make a second or third invocation I perceived that
> Axis2 1.3 retained the variables of the preceding call...
> (TomCat 6.0.14, JDK 1.6)
>
> I tried change the 'scope' parameter in my service.xml (eg:
> request ),,, but nothing...
> I need something like a new instance each time,,, a new execution
> with no parameters...
> Axis2 can make this, or I need restart my variables when my servive
> receive a new request...
>
> Can Someone, please, give-me a direction... ( an sample, an tutorial )
>
> Many Thanks in Advance
> ( sorry my english )
>
> --
> Arlindo Luis Marcon Junior
> E-mail: arlindomarconjr@gmail.com
> Internet Web Page: http://lattes.cnpq.br/6483462042489662
> ICQ: 138864173
> Curitiba - ParanĂ¡ - Brasil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org