I suppose you meant the ns prefix - is it ? I'm in a bit of a dilemma about this. On one hand we get the ability to do the custom mapping thing if we do the caching but it definitely increases the memory footprint. The integer solution is not elegant but works well in a streaming scenario where you have to remember very little.
AFAIK this happens during serialization. One thing we can do is it use a instance wide counter (not a static jvm-wide one) so that everytime a document is serialized, we start from the initial state of the counter. I cannot think of any ill behaviors in doing that. Ajith On Jan 22, 2008 11:46 AM, Davanum Srinivas <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul, > > Are they using wsdl2Java generated code? > > - -- dims > > Paul Fremantle wrote: > | I have come across a customer who has a problem with Axiom. > | They are letting Axiom generate the namespaces, but the way Axiom > | seems to do this is by having a JVM-wide setting which increments each > | time. > | > | The problem is that over time the numbers are getting very large > | indeed, making the messages very big > | > | I have three proposals: 1) we maintain a cache of ns->uri mappings and > | reuse them if they match. > | > | or > | > | 2) We hash the namespace and use the hash as the prefix > | > | or > | > | 3) we simply choose a large number like 9999 and loop round when we > | get to it, on the assumption that no XML document will have 10000 > | namespaces in it. > | > | Thoughts? > | Paul > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Cygwin) > > iD8DBQFHlh3vgNg6eWEDv1kRAocrAKCWkQfKOzU8E2pQsvg7DtJTjTzXDACfc/X8 > 7j9Ws7+dEDes02zcXukyEn4= > =KgXz > -----END PGP SIGNATURE----- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
