Java Mailing List Archive

http://www.java2.5341.com/

Home » axis-user.ws »

Re: Axis2 Client config location

Charitha Kankanamge

2008-07-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi Brian,
You can use ConfigurationContext to pick up config files (e.g:-
axis2.xml) as follows

1.Create configurationContext from file system as follows.
ConfigurationContext cc =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("\home\user\axis2\repository","\home\user\axis2\conf\\axis2.xml");

2. Pass it to stub constructor (If you are using generated client stub)
ServiceStub stub = new ServiceStub(cc);

If you are using serviceClient;
ServiceClient sc = new ServiceClient(cc);

HTH
Charitha
Brian Dillon wrote:

>Hi,
>
>Is there way to indicate where a standalone axis2 client should pick up
>it's configuration files (e.g. in axis1 this could be done using
>-Daxis.ClientConfigFile).
>
>Thanks,
>
>Brian
>
>__________________________________________________________
>FINEOS Corporation is the global brand name of FINEOS Corporation Limited and its affiliated group companies worldwide.
>The information contained in this e-mail is confidential, may be privileged and is intended
>only for the user of the recipient named above. If you are not the intended recipient or a
>representative of the intended recipient, you have received this e-mail in error and must
>not copy, use or disclose the contents of this e-mail to anybody else.
>
>If you have received this e-mail in error, please notify the sender immediately by return
>e-mail and permanently delete the copy you received. This e-mail has been swept for
>computer viruses. However, you should carry out your own virus checks.
>Registered in Ireland, No. 205721. http://www.FINEOS.com
>__________________________________________________________
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
>For additional commands, e-mail: axis-user-help@(protected)
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
For additional commands, e-mail: axis-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.