Showing posts with label axis2. Show all posts
Showing posts with label axis2. Show all posts

Monday, November 24, 2008

How to deploy specified web services in a remote repository

While working in my project MOINC ( http://www.moinc.org ).  I had two specified requirements 
  • work in a remote repository
  • deploy only specified web services from that repository
in my project MOINC Agent the remote repository i used was a common repository which is used by many computers. Therefore my second requirement of deploying specified services cannot be handled by editing the services.list file since its a common file for all computers.
The selution i came up with is hacking axis2 source code where i changed the services.list file to a local directory.
To do this i had to change module kernel package deployment and class deployment engine
the method loadServicesFromUrl

old code
URL servicesDir = new URL(repoURL, path);
URL filelisturl = new URL(servicesDir ,"services.list");

new code
URL servicesDir = new URL(repoURL, path);
URL filelisturl = new URL("http://localhost:port/services.list");

so now i will keep the services.list file in the localhost root directory where i specify the services required to be deployed.

Sunday, November 23, 2008

how to work with a remote repository axis2

Hi,
if any one is has a requirement on how to work in a remote repository using axis2 this is one way to do it.
if your using this way you have to use axis2 on top of tomcat where you deploy the axis2 war file in to the webapp folder in axis2.
its a very simple thing what you have to do it after the first deployment tomcat will unpack axis2 in to a folder in webapp directory. find the web.xml file and do the above change.


by changing the axis2 xml tag you can work with a remote axis2.xml file also.
when your working with a remote repo you will have to give up hot deployment.
but you can change the web.xml file while tomcat is running it will automatically ditect it and will do the updating part.

if you wish to get this thing done without tomcat refer to this blog

http://blogs.deepal.org/2008/02/starting-axis2-using-wso2-registry.html
Google