-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Sanjiva and all,

Sanjiva Weerawarana wrote:

> On Sun, 2006-01-15 at 15:06 +0000, Paul Fremantle wrote:
>
>> Eran
>>
>> How do I use it? I have a whole bunch of hokey code in order to
>> turn off addressing, and wasted a morning getting it working when
>> we ported to 0.94 because I missed something obvious in amongst
>> the hokey code!
>
>
> I just looked at the addressing out handler and it has this code:
>
> Boolean property = (Boolean)
> msgContext.getProperty(Constants.Configuration.DISABLE_ADDRESSING_FOR_OUT_MESSAGES);
> if (property != null && property.booleanValue()) {
> log.info("Addressing is disbaled ....."); return; }
>
> So .. I guess all that needs to happen is to set the property
> org.apache.axis2.Constants.Configuration.DISABLE_ADDRESSING_FOR_OUT_MESSAGES
> to true somewhere!
>

Yeah, this is exactly what you have to do.

> Sorry Paul; I guess this went thru somewhere without the necessary
> message to synapse-dev! :(.
>
> Oh and BTW, this is why I don't like using properties .. you have
> to know the names of properties to be able to make use of them. If
> there were methods then its more immediately visible. Anyway.


Well, the problem with methods is that once you introduce a new
method, the stub templates also must be changed with that. And we
(axis2 ppl) know that this is not happening all the times, even though
it is trivial.
And another problem is that, you will see hundreds of methods in Options.
So we moved on or prefer properties. Finding properties should not be
harder as all the property constants are in
org.apache.axis2.Constants.Configuration.

So if you want to set sth in Axis2

Step 1 : Search for that method in Options

if not found : search for a constant ,to set that as a property, in
org.apache.axis2.Constants.Configuration.

if not found : kindly send a mail to axis-dev :-) .

Simple, isn't it ? :-D


- -- Chinthaka

>
> Sanjiva.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
 
iD8DBQFDywhBjON2uBzUhh8RApTcAJ0QWoIcTq2fr/9rv2o4+o0KR3/YggCbBr/8
/OkrXQnJTvAWDMSw0WeqTKs=
=0qk7
-----END PGP SIGNATURE-----

Reply via email to