Hi Guillaume,

If the following is your requirement Axis2 (and hence WSAS) can support
it, provided that you configure the axis2.xml. To acchieve the following
the axis2.xml should have entries such as

..\axis2\WEB-INF\services

     |- services.list

     |- version-SNAPSHOT.aar

     |- \test

         |- STAFF.aar
     |- ...


<deployer extension="aar" directory="test"
 class="org.apache.axis2.deployment.ServiceDeployer"/>

If you look take a look at the WSO2 Mashup Server [1] (Which is built on
top of WSAS) you would notice that we do support such hierarchies
without having entries in the axis2.xml. We do this by programatically
updating the axis2 maps that keep track of these directories (Whats more
the mashup server allows you to have 2 services with the same name under
different directories. To do this we had to do some customization to Axis2).

So the simplest answer to your question is that it is possible with some
customization.

Thanks,
Keith.


[1] http://wso2.org/projects/mashup


Guillaume Cauchon wrote:
> I asked a question regarding web services hierarchical organization in
> the services repository (see emails below...) on the Axis2 mailing list,
> but it doesn't seams to be supported yet. I also am considering WSAS as
> a plus-value alternative to Axis2, is the feature I'm looking for
> available in yesterday's release (2.2)?
> 
> ________________________________
> 
> Guillaume Cauchon | DataDirect Technologies inc.
> 
>  -email: 
> 
> [EMAIL PROTECTED]
> 
>  -mobile: 
> 
> 418.952-7357
> 
>  -work: 
> 
> 418.649-1551
> 
>  
> 
> ________________________________
> 
> From: Guillaume Cauchon 
> Sent: Wednesday, January 23, 2008 9:30 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Axis2 service repository supports for hierarchy?
> 
>  
> 
> I read about configuring the deployers in the axis2.xml, but from what I
> understood it basically filters based on the extension... The default
> Axis2 configuration already deploy the POJO in a separate directory:
> 
>  
> 
>             axis2.xml:
> 
> ...
> 
> <deployer extension=".class" directory="pojo"
> class="org.apache.axis2.deployment.POJODeployer"/> 
> 
> ...
> 
>  
> 
>  
> 
> In fact what I would like to do is be able to organize my web services
> in sub directories in the repository (services directory). The error I
> paste in my first email was caused by deploying a service archive in the
> "test" sub directory:
> 
>  
> 
> ..\axis2\WEB-INF\services
> 
>     |- services.list
> 
>     |- version-SNAPSHOT.aar
> 
>     |- \test
> 
>         |- STAFF.aar
> 
>     |- ...
> 
>  
> 
> ________________________________
> 
> Guillaume Cauchon | DataDirect Technologies inc.  
> 
>  -email:         [EMAIL PROTECTED] 
> 
>  -mobile:       418.952-7357 
> 
>  -work:         418.649-1551 
> 
>  
> 
> -----Original Message-----
> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 23, 2008 2:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Axis2 service repository supports for hierarchy?
> 
>  
> 
>  
> 
>> I've been playing around with Axis2 in the last few days to see if it
> 
>> could fit the SOAP stack needs of the project I'm working on.
> 
> 
> Great.
> 
> 
>> One of the features I'm looking for is the possibility to organize my
> 
>> web services (archives, POJOs, etc...) under the services repository
> 
>> (i.e. sub directories), but this feature doesn't seams to be available
> 
>> yet...
> 
> 
> You can do that
> 
> As I can understand you want to add service aar file and POJOs into the
> 
> same directory
> 
> repository
> 
> services
> 
> foo.aar
> 
> xyz.aar
> 
> MyPojo.class
> 
> module
> 
>  
> 
> However you have to configure the deployers in your axis2.xml.
> 
>  
> 
>> A simple test made with this morning SNAPSHOT:
> 
> 
> 
>>       *This Web axisService has deployment faults*
> 
> 
> As I can see the error is due to you are trying to deploy an invalid
> 
> service , and that service does not have META-INF directory which is
> 
> essential to be a valid service.
> 
>  
> 
> Thanks
> 
> Deepal
> 
> 
> 
>>       **
> 
> 
>> Error: org.apache.axis2.deployment.DeploymentException: Invalid
> 
>> service. META-INF directory not found. at
> 
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A
> rchiveReader.java:297)
> 
>> at
> 
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
> 66)
> 
>> at
> 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
> ploymentFileData.java:136)
> 
>> at
> 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
> ava:584)
> 
>> at
> 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
> .java:141)
> 
>> at
> 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
> .java:330)
> 
>> at
> 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
> istener.java:227)
> 
>> at
> 
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL
> istener.java:324)
> 
>> at
> 
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sche
> dulerTask.java:64)
> 
>> at
> 
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja
> va:71)
> 
>> at
> 
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S
> cheduler.java:83)
> 
>> at
> 
> 
>> ...
> 
> 
>> I need to evaluate the amount of work required to get this kind of
> 
>> feature available, keep in mind that I'm only beginning in the Axis2
> 
>> codebase so I still have a lot of things to learn about the
> 
>> architecture... My question now, other than extending
> 
>> org.apache.axis2.deployment.ServiceDeployer so that I can get the web
> 
>> services deployed, what would be required for this repository
> 
>> "hierarchy" to work with all of the other components of Axis :
> 
>> run-time, management, etc?
> 
> 
>  
> 
>  
> 
>  
> 
> ---------------------------------------------------------------------
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wsas-java-user mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user


_______________________________________________
Wsas-java-user mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user

Reply via email to