Hi aj,

Yes its possible to set the configuration dynamically within the
service (for the service client).

If you are using the nightly build then you can use
org.apache.rampart.handler.config.OutflowConfiguration and
org.apache.rampart.handler.config.InflowConfiguration for this. You
can create instances of the above classes and set different config
parameters using the available setter methods (See [1]
getOutflowConfiguration() and getInflowConfiguration()). Then you can
obtain an Axis2 parameter form each of the above instances by calling
getProerty(). This parameter instance can be set in the options object
of the ServiceClient (See here [2] invokeWithGivenConfig()).

Thanks,
Ruchith

[1] 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/AddressingMTOMSecurityTest.java
[2] 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/security/interop/org/apache/axis2/security/InteropScenarioClient.java
On 8/10/06, Jones, Alan R <[EMAIL PROTECTED]> wrote:

Assuming there are several services deployed to the same axis2
deployment (Tomcat) and they all need to talk to each other with secured
messages...

Each service is also a client of one or more other services. Therefore,
each service will need its own axis2.xml in order to config its keystore
alias/user, the sec.properties, etc. via OutflowSecurity entry. This
implies a separate axis2 "client" repository for each provider/consumer,
which in turn requires a certain directory structure (repos/conf,
repos/modules, etc) since axis throws errors when the structure is
absent. This is not desirable. Soooo...

Is it possible to instead dynamically set the OutflowSecurity parameters
inside each service, as it begins to make its call to an external
service, eliminating the need for a static config file and all its
attendant other stuff?



Thanks,

aj



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




--
www.ruchith.org

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

Reply via email to