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 Javier V <ja...@hotmail.com> on 2006/06/29 01:28:53 UTC
[Axis2] Question about scope="application"
Hi,
I'd like to know more about scope="application" when defining the service in
service.xml.
If all users share a singleton object,
- is it supposed that all user calls are served FIFO (First In-First Out)
and this is done by Axis?
- or is it possible that multiple threads may attempt to access the object's
methods at the same time and it's is my responsibility to ensure that my
service-object-methods are thread-safe ?
Anymore condiserations when using scope=application" ?
Thanks in advance
Janfry
_________________________________________________________________
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en
MSN Motor. http://motor.msn.es/researchcentre/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Question about scope="application"
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Javier;
Javier V wrote:
> Hi,
>
> I'd like to know more about scope="application" when defining the
> service in service.xml.
>
> If all users share a singleton object,
if you deploy service in application scope , then there will be only one
instance of the service impl class throughout of the application lifetime.
>
> - is it supposed that all user calls are served FIFO (First In-First
> Out) and this is done by Axis?
It is done by Thread pool (as I know , in the tomcat case it is handle
by servlet)
>
> - or is it possible that multiple threads may attempt to access the
> object's methods at the same time and it's is my responsibility to
> ensure that my service-object-methods are thread-safe ?
yes, one design principle of Axis2 is its stateless nature , so the best
practice is to not use any instance variable .
>
> Anymore condiserations when using scope=application" ?
well , as I mention there will be only one service instance , and
nothing special.
>
> Thanks in advance
>
> Janfry
>
> _________________________________________________________________
> ¿Estás pensando en cambiar de coche? Todas los modelos de serie y
> extras en MSN Motor. http://motor.msn.es/researchcentre/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Character Encoding
Posted by Davanum Srinivas <da...@gmail.com>.
Are u using latest nightly? If so, please log a bug report.
Thanks,
dims
On 8/2/06, Javier V <ja...@hotmail.com> wrote:
> Hi,
>
> I want to change the character encoding to another than UTF-8, like
> UTF-16 or ISO-8859-1.
>
> I've tried with:
>
> Options options = new Options();
> options.setTo(targetEPR);
>
>
> options.setProperty(org.apache.axis2.context.MessageContext.CHARACTER_SET_ENCODING,
> org.apache.axis2.context.MessageContext.UTF_16);
>
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
>
> OMElement result2 = sender.sendReceive(payload2);
>
> but does not work, with the SOAPMonitor the SOAP message begins with
>
> <?xml version='1.0' encoding='utf-8'?>
>
> and the text included is utf-8 too.
>
> I've tried with
> options.setProperty(org.apache.axis2.context.MessageContext.DEFAULT_CHAR_SET_ENCODING,
> "utf-16");
>
> and "UTF-16" but doesn't work.
>
> Can anybody help me?
>
> Thanks in advance
>
> Janfry
>
> _________________________________________________________________
> Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor
> & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Character Encoding
Posted by Eran Chinthaka <ch...@opensource.lk>.
The constant should be
org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING
(Arghh, when will my article on the constants gets published :( )
This SHOULD work with latest nightly build. If not please find a bug in
JIRA.
-- Chinthaka
Javier V wrote:
> Hi,
>
> I want to change the character encoding to another than UTF-8, like
> UTF-16 or ISO-8859-1.
>
> I've tried with:
>
> Options options = new Options();
> options.setTo(targetEPR);
>
>
> options.setProperty(org.apache.axis2.context.MessageContext.CHARACTER_SET_ENCODING,
> org.apache.axis2.context.MessageContext.UTF_16);
>
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
>
> OMElement result2 = sender.sendReceive(payload2);
>
> but does not work, with the SOAPMonitor the SOAP message begins with
>
> <?xml version='1.0' encoding='utf-8'?>
>
> and the text included is utf-8 too.
>
> I've tried with
> options.setProperty(org.apache.axis2.context.MessageContext.DEFAULT_CHAR_SET_ENCODING,
> "utf-16");
>
> and "UTF-16" but doesn't work.
>
> Can anybody help me?
>
> Thanks in advance
>
> Janfry
>
> _________________________________________________________________
> Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN
> Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
[Axis2] Character Encoding
Posted by Javier V <ja...@hotmail.com>.
Hi,
I want to change the character encoding to another than UTF-8, like
UTF-16 or ISO-8859-1.
I've tried with:
Options options = new Options();
options.setTo(targetEPR);
options.setProperty(org.apache.axis2.context.MessageContext.CHARACTER_SET_ENCODING,
org.apache.axis2.context.MessageContext.UTF_16);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result2 = sender.sendReceive(payload2);
but does not work, with the SOAPMonitor the SOAP message begins with
<?xml version='1.0' encoding='utf-8'?>
and the text included is utf-8 too.
I've tried with
options.setProperty(org.apache.axis2.context.MessageContext.DEFAULT_CHAR_SET_ENCODING,
"utf-16");
and "UTF-16" but doesn't work.
Can anybody help me?
Thanks in advance
Janfry
_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
[Axis2] Character encoding in server side
Posted by Javier V <ja...@hotmail.com>.
Hi,
I've developed a service but the client invocation encodes the information
in WIN1252 instead of UTF-8.
How must I configure the services.xml file to change the character
enconding?
Thanks in advance
Janfry
_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN
http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org