the problem with these Scripting libraries generally map to proper java classes 
from normal Ant and Maven deployer environments
which is how 99% of the axis mars and aars are being deployed in production 
environments. 
in short you'll need to support 3 distinct deployment implementations:


            In Axis2, there are three main ways to deploy a service:
            Drop the service archive file into the repository.Create a service 
programmatically using an archive file e.g.
ConfigurationContext configContext;
// you need to have reference to ConfigurationContext
File file = new File("Location of the file"");
ClassLoader clsLoader = new URLClassLoader(new URL[]{file.toURL()});
InputStream in = new FileInputStream("location of service.xml");
AxisService service = DeploymentEngine.buildService(in, clsLoader,
configContext);

Deploy a service as a Plain Old Java Object (POJO) e.g.AxisService service = 
AxisService.createService( 
MyService.class.getName(), axisConfig, RPCMessageReceiver.class);
axisConfig.addService(service);
as you can see what is easy in Java or Java based languages such as Jython can 
be encomously difficult with Tools
whose mapping to Java Classes is unknown
if you feel comforable with Groovy i would suggest making a q&d groovy deployer 
and submit here for test and review

information on features and functions of axis2 deployments is available at:
http://www.ibm.com/developerworks/library/ws-axis2soap/index.html

building, packaging and deploying aar with axis2-aar-maven-plugin information 
is available at:
http://axis.apache.org/axis2/java/core/maven-help.html

bon chance,
Martin 
______________________________________________ 
Note de déni et de confidentialité
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Mon, 18 Apr 2011 21:03:03 +0200
Subject: Groovy and Jython custom deployer
From: francois.lef...@racinegroup.com
To: java-dev@axis.apache.org

Hi,

Groovy custom deployer was in Axis2 source tree, but was marked as depreciated:
http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/java/1_3/modules/samples/deprecated/groovy/src/sample/groovy/


Jython custom deployer was never elected to any official build, but is (maybe 
was ?) supported by WSO2 :
http://wso2.org/library/articles/deploying-python-service-axis2

https://wso2.org/svn/browse/wso2/trunk/wsf/jython/server/

Such type of custom deployer doesn't exist anymore?
Do they exist some versions, compliant with current axis2 1.5.4 ?


Thanks in advance,
Regards,

Francois

                                          

Reply via email to