axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brecht Yperman" <Brecht.Yper...@invenso.com>
Subject RE: [Axis2] Using axis2.war repository remotely from another application
Date Tue, 06 Feb 2007 12:44:23 GMT
You can get the ConfigurationContext using a method like this:

private File getServiceDir() {
	if (f_serviceDir == null) {
		MessageContext mc =
MessageContext.getCurrentMessageContext();
		try {
			ConfigurationContext cc =
mc.getConfigurationContext();
			File repoDir = new
File(cc.getAxisConfiguration().getRepository()
					.getFile());
			f_serviceDir = new File(repoDir, "services");
			if (!f_serviceDir.exists()) {
				f_serviceDir.mkdirs();
			}
		} catch (Exception ex) {
			error("Getting services path", ex);
		}
	}
		
	return f_serviceDir;
}

-----Original Message-----
From: Brecht Yperman [mailto:Brecht.Yperman@invenso.com] 
Sent: dinsdag 6 februari 2007 13:41
To: axis-user@ws.apache.org; taroza@gmail.com
Subject: RE: [Axis2] Using axis2.war repository remotely from another
application

Hi,

I've done this creating a webservice which mimicks behaviour from the
AxisAdminServlet (AdminAgent.processUpload).

Basically it's a webservice that takes user credentials (to prevent
anyone from deploying webservices), a base64 encoded webservice jar and
a filename, and writes the bytes from the jar to the repository using
the filename.

Best regards,
Brecht

-----Original Message-----
From: Evaldas Taroza [mailto:taroza@gmail.com] 
Sent: dinsdag 6 februari 2007 13:23
To: axis-user@ws.apache.org
Subject: [Axis2] Using axis2.war repository remotely from another
application

Hi,
I want to programmatically deploy modules/services to  the axis2 
repository configured in axis2.war. This way I want to be able to admin 
the services I deploy from my application using axis2.war administration

page.

As far as I understand I need to somehow get the instance of 
ConfigurationContext that axis2.war is using. How to do it? Or am I 
totally wrong?

Thanks,

Zeppe

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


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


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


Mime
View raw message