Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 18265 invoked from network); 18 Apr 2011 20:09:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 20:09:17 -0000 Received: (qmail 99011 invoked by uid 500); 18 Apr 2011 20:09:17 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 98719 invoked by uid 500); 18 Apr 2011 20:09:17 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 98709 invoked by uid 99); 18 Apr 2011 20:09:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 20:09:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.116.103 as permitted sender) Received: from [65.55.116.103] (HELO blu0-omc3-s28.blu0.hotmail.com) (65.55.116.103) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 20:09:08 +0000 Received: from BLU142-W4 ([65.55.116.73]) by blu0-omc3-s28.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 18 Apr 2011 13:08:47 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_4847729d-8dd2-4ceb-9259-543d6f1bcfab_" X-Originating-IP: [76.119.45.69] From: Martin Gainty To: Subject: RE: Groovy and Jython custom deployer Date: Mon, 18 Apr 2011 16:08:47 -0400 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 18 Apr 2011 20:08:47.0521 (UTC) FILETIME=[6D2D7110:01CBFE04] X-Virus-Checked: Checked by ClamAV on apache.org --_4847729d-8dd2-4ceb-9259-543d6f1bcfab_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable the problem with these Scripting libraries generally map to proper java cla= sses from normal Ant and Maven deployer environments which is how 99% of the axis mars and aars are being deployed in production= environments.=20 in short you'll need to support 3 distinct deployment implementations: In Axis2=2C there are three main ways to deploy a service: Drop the service archive file into the repository.Create a serv= ice programmatically using an archive file e.g. ConfigurationContext configContext=3B // you need to have reference to ConfigurationContext File file =3D new File("Location of the file"")=3B ClassLoader clsLoader =3D new URLClassLoader(new URL[]{file.toURL()})=3B InputStream in =3D new FileInputStream("location of service.xml")=3B AxisService service =3D DeploymentEngine.buildService(in=2C clsLoader=2C configContext)=3B Deploy a service as a Plain Old Java Object (POJO) e.g.AxisService service = =3D AxisService.createService(=20 MyService.class.getName()=2C axisConfig=2C RPCMessageReceiver.class)=3B axisConfig.addService(service)=3B 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 depl= oyer 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=2C packaging and deploying aar with axis2-aar-maven-plugin informa= tion is available at: http://axis.apache.org/axis2/java/core/maven-help.html bon chance=2C Martin=20 ______________________________________________=20 Note de d=E9ni et de confidentialit=E9 Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAte= s pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sa= tisfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9= e ou la copie de ceci est interdite. Ce message sert =E0 l'information seul= ement et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant = donn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . Date: Mon=2C 18 Apr 2011 21:03:03 +0200 Subject: Groovy and Jython custom deployer From: francois.lefoll@racinegroup.com To: java-dev@axis.apache.org Hi=2C Groovy custom deployer was in Axis2 source tree=2C but was marked as deprec= iated: http://svn.apache.org/repos/asf/axis/axis2/java/core/branches/java/1_3/modu= les/samples/deprecated/groovy/src/sample/groovy/ Jython custom deployer was never elected to any official build=2C but is (m= aybe 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=2C compliant with current axis2 1.5.4 ? Thanks in advance=2C Regards=2C Francois = --_4847729d-8dd2-4ceb-9259-543d6f1bcfab_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable the problem with these Scripting libraries generally map to proper java cla= sses 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:
<= a name=3D"available">

In Axis2=2C 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=3B
    // you need to= have reference to ConfigurationContext
    File file =3D new File("Location= of the file"")=3B
    ClassLoader clsLoader =3D new URLClassLoader(new URL[= ]{file.toURL()})=3B
    InputStream in =3D new FileInputStream("location of = service.xml")=3B
    AxisService service =3D DeploymentEngine.buildService(i= n=2C clsLoader=2C
    configContext)=3B

  • Deploy a servi= ce as a Plain Old Java Object (POJO) e.g.
AxisService service =3D AxisService.createService( 
MyService.class.g= etName()=2C axisConfig=2C RPCMessageReceiver.class)=3B
axisConfig.addSer= vice(service)=3B
as you can see what is easy in Java or Java based= languages such as Jython can be encomously difficult with Tools
whose m= apping to Java Classes is unknown
if you feel comforable with Groovy i w= ould suggest making a q&=3Bd groovy deployer and submit here for test an= d review

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

building=2C packaging and deploying aar with axis2-aar-ma= ven-plugin information is available at:
http://axis.apache.org/axis2/jav= a/core/maven-help.html

bon chance=2C
Martin
_________________= _____________________________
Note de d=E9ni et de confidentialit=E9
 =3B
Ce message est confidentiel et peut =EAtre privil=E9gi= =E9. Si vous n'=EAtes pas le destinataire pr=E9vu=2C nous te demandons avec= bont=E9 que pour satisfaire informez l'exp=E9diteur. N'importe quelle diff= usion non autoris=E9e ou la copie de ceci est interdite. Ce message sert = =E0 l'information seulement et n'aura pas n'importe quel effet l=E9galement= obligatoire. =C9tant donn=E9 que les email peuvent facilement =EAtre sujet= s =E0 la manipulation=2C nous ne pouvons accepter aucune responsabilit=E9 p= our le contenu fourni.





Date: Mon= =2C 18 Apr 2011 21:03:03 +0200
Subject: Groovy and Jython custom deploye= r
From: francois.lefoll@racinegroup.com
To: java-dev@axis.apache.org<= br>
Hi=2C

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

Jython custom deployer was never elected to any official build=2C but i= s (maybe was ?) supported by WSO2 :
http://wso2.org/l= ibrary/articles/deploying-python-service-axis2
https://wso2.org/svn/browse/wso2/trunk/wsf/jython/server/<= br>
Such type of custom deployer doesn't exist anymore?
Do they exist= some versions=2C compliant with current axis2 1.5.4 ?

Thanks in advance=2C
Regards=2C

Francois

<= /body> = --_4847729d-8dd2-4ceb-9259-543d6f1bcfab_--