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 Bartolomeo Nicolotti <bn...@siapcn.it> on 2011/01/12 17:24:40 UTC

host param in axis2.xml set with AxisConfiguration

Hello,

I've set the "hostname" parameter in axis2.xml by hand:

<parameter name="hostname" locked="true">aaa.bbb.ccc.ddd</parameter>

The problme is that we've different servers, so we've to keep a
different axis2.xml for each one, and this is not good.

We've already the value 

aaa.bbb.ccc.ddd

for each server in another configuration file, is it possible to set the
parameter 

hostname

from java with

ConfigurationContext
AxisConfiguration

Many thanks

Best regards

Bartolomeo



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: host param in axis2.xml set with AxisConfiguration

Posted by Srinath Perera <sr...@wso2.com>.
it is something like

configcontextobj.getAxisConfiguration().addParameter(name, value)

--Srinath

On Thu, Jan 13, 2011 at 10:11 PM, Bartolomeo Nicolotti
<bn...@siapcn.it> wrote:
> Hello,
>
> could you please show us an example?
>
> Many thanks
>
> Best regards
>
> Bartolomeo
>
> Il giorno gio, 13/01/2011 alle 09.37 +0530, Amila Suriarachchi ha
> scritto:
>>
>>
>> On Wed, Jan 12, 2011 at 9:54 PM, Bartolomeo Nicolotti
>> <bn...@siapcn.it> wrote:
>>         Hello,
>>
>>         I've set the "hostname" parameter in axis2.xml by hand:
>>
>>         <parameter name="hostname"
>>         locked="true">aaa.bbb.ccc.ddd</parameter>
>>
>>         The problme is that we've different servers, so we've to keep
>>         a
>>         different axis2.xml for each one, and this is not good.
>>
>>         We've already the value
>>
>>         aaa.bbb.ccc.ddd
>>
>>         for each server in another configuration file, is it possible
>>         to set the
>>         parameter
>>
>>         hostname
>>
>>         from java with
>>
>>         ConfigurationContext
>>         AxisConfiguration
>>
>>
>> yes you can. if you have access to configuration context at some of
>> your custom code.
>>
>> thanks,
>> Amila.
>>
>>         Many thanks
>>
>>         Best regards
>>
>>         Bartolomeo
>>
>>
>>
>>         ---------------------------------------------------------------------
>>         To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>         For additional commands, e-mail:
>>         java-user-help@axis.apache.org
>>
>>
>>
>>
>> --
>> Amila Suriarachchi
>> WSO2 Inc.
>> blog: http://amilachinthaka.blogspot.com/
> --
> ____________________________________________________________
> Bartolomeo Nicolotti - Reparto Sviluppo - SIAP s.r.l.
> Via Sant'Albano, 13 - 12049 Trinità (CN) Italy
> Tel. (+39) 0172 652511 - Fax (+39) 0172 652519
> E-mail: bnicolotti@siapcn.it - URL: www.siapcn.it
> Codice Fiscale, Partita IVA, Iscr. Reg. Imprese di Cuneo: 01871320048
> Capitale Sociale: € 99.000,00 i.v. - R.E.A. CN 141311
> ____________________________________________________________
>
> Le informazioni contenute nella presente comunicazione e i relativi
> allegati possono essere riservate e sono, comunque, destinate
> esclusivamente alle persone o alla Società sopraindicati. La
> comunicazione, diffusione, distribuzione e/o copiatura del documento
> trasmesso nonché qualsiasi forma di trattamento dei dati ivi contenuti
> da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia
> ai sensi dell'art. 616 c.p., che ai sensi del D. Lgs. n. 196/2003, ed in
> ogni caso espressamente inibita. Se avete ricevuto questo messaggio per
> errore, vi preghiamo di distruggerlo e di informarci immediatamente per
> telefono allo 0172/652511 o inviando un messaggio all'indirizzo:
> info@siapcn.it
> ____________________________________________________________
>
> This electronic mail transmission, including any accompanying documents
> or attachments, may contain information that is confidential,
> privileged, proprietary, or otherwise legally exempt from disclosure and
> it's intended solely for the addressee(s).  Access to this Internet
> electronic mail message by anyone else is unauthorized.  If you are not
> the intended recipient, any disclosure, copying, distribution or any
> action taken or omitted to be taken in reliance on it is prohibited and
> may be unlawful. If you have received this electronic mail erroneously,
> we ask you to to destroy it and let us know immediately by phone
> at 0172/652511 or by sending an e-mail at info@siapcn.it
> ____________________________________________________________
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>



-- 
============================
Srinath Perera, Ph.D.
  Senior Software Architect, WSO2 Inc.
  Visiting Lecturer, University of Moratuwa
  Member, Apache Software Foundation
  Research Scientist, Lanka Software Foundation
  Blog: http://srinathsview.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: host param in axis2.xml set with AxisConfiguration

Posted by Bartolomeo Nicolotti <bn...@siapcn.it>.
Hello,

could you please show us an example?

Many thanks

Best regards

Bartolomeo

Il giorno gio, 13/01/2011 alle 09.37 +0530, Amila Suriarachchi ha
scritto:
> 
> 
> On Wed, Jan 12, 2011 at 9:54 PM, Bartolomeo Nicolotti
> <bn...@siapcn.it> wrote:
>         Hello,
>         
>         I've set the "hostname" parameter in axis2.xml by hand:
>         
>         <parameter name="hostname"
>         locked="true">aaa.bbb.ccc.ddd</parameter>
>         
>         The problme is that we've different servers, so we've to keep
>         a
>         different axis2.xml for each one, and this is not good.
>         
>         We've already the value
>         
>         aaa.bbb.ccc.ddd
>         
>         for each server in another configuration file, is it possible
>         to set the
>         parameter
>         
>         hostname
>         
>         from java with
>         
>         ConfigurationContext
>         AxisConfiguration
>         
> 
> yes you can. if you have access to configuration context at some of
> your custom code.
> 
> thanks,
> Amila.
>  
>         Many thanks
>         
>         Best regards
>         
>         Bartolomeo
>         
>         
>         
>         ---------------------------------------------------------------------
>         To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>         For additional commands, e-mail:
>         java-user-help@axis.apache.org
>         
> 
> 
> 
> -- 
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
-- 
____________________________________________________________
Bartolomeo Nicolotti - Reparto Sviluppo - SIAP s.r.l.
Via Sant'Albano, 13 - 12049 Trinità (CN) Italy
Tel. (+39) 0172 652511 - Fax (+39) 0172 652519
E-mail: bnicolotti@siapcn.it - URL: www.siapcn.it
Codice Fiscale, Partita IVA, Iscr. Reg. Imprese di Cuneo: 01871320048
Capitale Sociale: € 99.000,00 i.v. - R.E.A. CN 141311
____________________________________________________________

Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, destinate
esclusivamente alle persone o alla Società sopraindicati. La
comunicazione, diffusione, distribuzione e/o copiatura del documento
trasmesso nonché qualsiasi forma di trattamento dei dati ivi contenuti
da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia
ai sensi dell'art. 616 c.p., che ai sensi del D. Lgs. n. 196/2003, ed in
ogni caso espressamente inibita. Se avete ricevuto questo messaggio per
errore, vi preghiamo di distruggerlo e di informarci immediatamente per
telefono allo 0172/652511 o inviando un messaggio all'indirizzo:
info@siapcn.it
____________________________________________________________

This electronic mail transmission, including any accompanying documents
or attachments, may contain information that is confidential,
privileged, proprietary, or otherwise legally exempt from disclosure and
it's intended solely for the addressee(s).  Access to this Internet
electronic mail message by anyone else is unauthorized.  If you are not
the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it is prohibited and
may be unlawful. If you have received this electronic mail erroneously,
we ask you to to destroy it and let us know immediately by phone
at 0172/652511 or by sending an e-mail at info@siapcn.it 
____________________________________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: host param in axis2.xml set with AxisConfiguration

Posted by Amila Suriarachchi <am...@gmail.com>.
On Wed, Jan 12, 2011 at 9:54 PM, Bartolomeo Nicolotti
<bn...@siapcn.it>wrote:

> Hello,
>
> I've set the "hostname" parameter in axis2.xml by hand:
>
> <parameter name="hostname" locked="true">aaa.bbb.ccc.ddd</parameter>
>
> The problme is that we've different servers, so we've to keep a
> different axis2.xml for each one, and this is not good.
>
> We've already the value
>
> aaa.bbb.ccc.ddd
>
> for each server in another configuration file, is it possible to set the
> parameter
>
> hostname
>
> from java with
>
> ConfigurationContext
> AxisConfiguration
>
>
yes you can. if you have access to configuration context at some of your
custom code.

thanks,
Amila.


> Many thanks
>
> Best regards
>
> Bartolomeo
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/