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 Michele Mazzucco <Mi...@ncl.ac.uk> on 2007/11/08 18:55:19 UTC
[Axis2] ws-addressing & msg id
Hi all,
when is the message id set?, is it guaranteed to be unique inside the
same JVM (receiver side)?
Thanks,
Michele
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] ws-addressing & msg id
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Thanks.
Michele
On 9 Nov 2007, at 11:17, Paul Fremantle wrote:
> Michele
>
> I believe you could assume the msgId is unique at the server and
> use it. Doing a counter will imply a synchronized creation and
> might well slow your service down.
>
> Paul
>
> On Nov 9, 2007 10:00 AM, Michele Mazzucco
> <Mi...@ncl.ac.uk> wrote:
> Paul,
>
> thanks for the reply.
> One more question: when is the messageID created?, before the
> message is
> sent or when the message is received?
> I need to store some data in a map (on the server side) and I would
> like
> to use the messageID as key However, if the messageID is generated on
> the client side, it's probably better to create a fresh key (i.e.
> using
> a counter), isn't it?
>
> Thanks,
> Michele
>
> On Thu, 2007-11-08 at 18:20 +0000, Paul Fremantle wrote:
> > Yes the UUIDs used in messageID should be unique inside the same
> JVM.
> > We did have a problem with UUIDs not being unique at one point (it
> > came up when we did load tests of Synapse). I know we did a fix in
> > Synapse but I'm pretty certain this filtered into Axis2 as well.
> >
> > I believe they should be Universally Unique (i.e. unique OUTSIDE
> just
> > a JVM as well) but that's harder to ensure.
> >
> > Paul
> >
> > On Nov 8, 2007 5:55 PM, Michele Mazzucco <
> Michele.Mazzucco@ncl.ac.uk>
> > wrote:
> > Hi all,
> >
> > when is the message id set?, is it guaranteed to be unique
> > inside the
> > same JVM (receiver side)?
> >
> >
> > Thanks,
> > Michele
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-
> help@ws.apache.org
> >
> >
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] ws-addressing & msg id
Posted by Paul Fremantle <pz...@gmail.com>.
Michele
I believe you could assume the msgId is unique at the server and use it.
Doing a counter will imply a synchronized creation and might well slow your
service down.
Paul
On Nov 9, 2007 10:00 AM, Michele Mazzucco <Mi...@ncl.ac.uk>
wrote:
> Paul,
>
> thanks for the reply.
> One more question: when is the messageID created?, before the message is
> sent or when the message is received?
> I need to store some data in a map (on the server side) and I would like
> to use the messageID as key However, if the messageID is generated on
> the client side, it's probably better to create a fresh key (i.e. using
> a counter), isn't it?
>
> Thanks,
> Michele
>
> On Thu, 2007-11-08 at 18:20 +0000, Paul Fremantle wrote:
> > Yes the UUIDs used in messageID should be unique inside the same JVM.
> > We did have a problem with UUIDs not being unique at one point (it
> > came up when we did load tests of Synapse). I know we did a fix in
> > Synapse but I'm pretty certain this filtered into Axis2 as well.
> >
> > I believe they should be Universally Unique (i.e. unique OUTSIDE just
> > a JVM as well) but that's harder to ensure.
> >
> > Paul
> >
> > On Nov 8, 2007 5:55 PM, Michele Mazzucco <Mi...@ncl.ac.uk>
> > wrote:
> > Hi all,
> >
> > when is the message id set?, is it guaranteed to be unique
> > inside the
> > same JVM (receiver side)?
> >
> >
> > Thanks,
> > Michele
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
Re: [Axis2] ws-addressing & msg id
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Paul,
thanks for the reply.
One more question: when is the messageID created?, before the message is
sent or when the message is received?
I need to store some data in a map (on the server side) and I would like
to use the messageID as key However, if the messageID is generated on
the client side, it's probably better to create a fresh key (i.e. using
a counter), isn't it?
Thanks,
Michele
On Thu, 2007-11-08 at 18:20 +0000, Paul Fremantle wrote:
> Yes the UUIDs used in messageID should be unique inside the same JVM.
> We did have a problem with UUIDs not being unique at one point (it
> came up when we did load tests of Synapse). I know we did a fix in
> Synapse but I'm pretty certain this filtered into Axis2 as well.
>
> I believe they should be Universally Unique (i.e. unique OUTSIDE just
> a JVM as well) but that's harder to ensure.
>
> Paul
>
> On Nov 8, 2007 5:55 PM, Michele Mazzucco <Mi...@ncl.ac.uk>
> wrote:
> Hi all,
>
> when is the message id set?, is it guaranteed to be unique
> inside the
> same JVM (receiver side)?
>
>
> Thanks,
> Michele
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] ws-addressing & msg id
Posted by Samisa Abeysinghe <sa...@gmail.com>.
Michele Mazzucco wrote:
> Paul,
>
> thanks for the reply.
> One more question: when is the messageID created?, before the message is
> sent or when the message is received?
>
messageID is sent in the SOAP header, so it is created before the
message is sent.
On server side you can access the messageID of the incomming message
through the message context.
Samisa...
> I need to store some data in a map (on the server side) and I would like
> to use the messageID as key However, if the messageID is generated on
> the client side, it's probably better to create a fresh key (i.e. using
> a counter), isn't it?
>
> On Thu, 2007-11-08 at 18:20 +0000, Paul Fremantle wrote:
>
>> Yes the UUIDs used in messageID should be unique inside the same JVM.
>> We did have a problem with UUIDs not being unique at one point (it
>> came up when we did load tests of Synapse). I know we did a fix in
>> Synapse but I'm pretty certain this filtered into Axis2 as well.
>>
>> I believe they should be Universally Unique (i.e. unique OUTSIDE just
>> a JVM as well) but that's harder to ensure.
>>
>> Paul
>>
>> On Nov 8, 2007 5:55 PM, Michele Mazzucco <Mi...@ncl.ac.uk>
>> wrote:
>> Hi all,
>>
>> when is the message id set?, is it guaranteed to be unique
>> inside the
>> same JVM (receiver side)?
>>
>>
>> Thanks,
>> Michele
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>
>> --
>> Paul Fremantle
>> Co-Founder and VP of Technical Sales, WSO2
>> OASIS WS-RX TC Co-chair
>>
>> blog: http://pzf.fremantle.org
>> paul@wso2.com
>>
>> "Oxygenating the Web Service Platform", www.wso2.com
>>
>
>
> ---------------------------------------------------------------------
> 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: [Axis2] ws-addressing & msg id
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Paul,
thanks for the reply.
One more question: when is the messageID created?, before the message is
sent or when the message is received?
I need to store some data in a map (on the server side) and I would like
to use the messageID as key However, if the messageID is generated on
the client side, it's probably better to create a fresh key (i.e. using
a counter), isn't it?
On Thu, 2007-11-08 at 18:20 +0000, Paul Fremantle wrote:
> Yes the UUIDs used in messageID should be unique inside the same JVM.
> We did have a problem with UUIDs not being unique at one point (it
> came up when we did load tests of Synapse). I know we did a fix in
> Synapse but I'm pretty certain this filtered into Axis2 as well.
>
> I believe they should be Universally Unique (i.e. unique OUTSIDE just
> a JVM as well) but that's harder to ensure.
>
> Paul
>
> On Nov 8, 2007 5:55 PM, Michele Mazzucco <Mi...@ncl.ac.uk>
> wrote:
> Hi all,
>
> when is the message id set?, is it guaranteed to be unique
> inside the
> same JVM (receiver side)?
>
>
> Thanks,
> Michele
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] ws-addressing & msg id
Posted by Paul Fremantle <pz...@gmail.com>.
Yes the UUIDs used in messageID should be unique inside the same JVM. We did
have a problem with UUIDs not being unique at one point (it came up when we
did load tests of Synapse). I know we did a fix in Synapse but I'm pretty
certain this filtered into Axis2 as well.
I believe they should be Universally Unique (i.e. unique OUTSIDE just a JVM
as well) but that's harder to ensure.
Paul
On Nov 8, 2007 5:55 PM, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Hi all,
>
> when is the message id set?, is it guaranteed to be unique inside the
> same JVM (receiver side)?
>
>
> Thanks,
> Michele
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com