Persistent Axis2 Service Files - jboss7.x

I deployed an instance on Axis2 within my JBoss EAP 6.2 server. However, the only way I can add my service files are through the online admin console. This is a problem because when I add them through the console they are added to a random folder within standalone/tmp/vfs. So when I stop and start my server again I lose my reference and I need to re-add them through the console. How can I set it up so that I do not need to re-add my service files every time I start my server?

You can prepackage them inside your war under /WEB-INF/services so that they are automatically deployed with the war file.
e.g.
/WEB-INF
/services
/service_a.aar
/service_b.aar
/services.list
The services.list file in the same directory is a text file listing your aar files ... one per line
The aar files are just zipped Axis archives. They contain a META-INF directory with your wsdl, any xsd files and an Axis2 services.xml service configuration file describing the service.

Related

How to add resource files in in /src/main/resource after deploying mule application in mmc

I have just deployed for the first time a mule application in Mule management console(MMC),after deploying I want to add csv file in src/main/resourses/input folder. where can I find path and add csv file to that path.
You can see the below image for details.
In other words,
Click on Servers tab --> Server --> Files tab --> apps --> Select your application --> classes --> Click on New File button --> Upload file.
But I suggest, keep your file in some other location and read it instead of keeping with in application folder structure.Problem is if you re-deploy the app from MMC, whatever files you have added manually from MMC will be deleted as MMC will take application from repository and deploy into server whenever you do re-deploy.
{MULE_HOME}/apps/{my app}/classes/{input folder}
Any folders under src/main/resourses will reside under the classes folder found in your app folder, which is under the apps folder of the standalone Mule server.
You could look at this path
/opt/mule-standalone-3.7.0/apps/{appname}/classes

MobileFirst: Back-end service discovery wizard not appearing - single wsdl with multiple xsd files

I have a wsdl & multiple xsd files.
When I copy them inside the services folder of a MobileFirst project. Then it does not show/detect them inside the services folder. It shows as empty folder when viewing in Project Explorer view. However it does show wsdl & xsds files when viewing through Package Explorer.
I want to run the Back-end service discovery wizard to generate the adapter functions, rather than manually typing the SOAP messages in adapter functions.
Currently it is not showing the option of Back-end service discovery wizard
You do not need to copy the wsdl and xsd files into the services folder. You should be able to run the Back-end service discovery wizard off the services folder and then point to those files on your file system.
The project explorer view only shows elements under the services folder that are representations of the underlying service model (as defined in the service descriptor xml files). It does not show the xml files themselves or any other file types, but just shows nodes that represent a service model node. This was done only for the project explorer view. You can view the service descriptor xml files and any other file types in other viewers such as the navigator viewer or package explorer. It is assumed that the only files that would ever be in the services folder would be the service descriptor xml files. It is not necessary that you put your files under this folder.

How to read/get ini file path in WCF published folder vb.net?

I'm writing a WCF service which suppose to get it's data connection to sql server from config file.
Where should I place the config file and how can I get it's path so every time the service will run it will go to the specific program application published folder and read the file from there.
when I publish the service I create a folder and in it there is XXX.svc file, Web.config file and bin folder.

Axis2 and Spring3 integration

I have an Web application developed using Spring3. Some functions of Web app needs to be exposed as Web services also.
Web app is deployed in the Tomcat Server as a .war file.
I have gone through Axis2 and Spring integration in the site http://axis.apache.org/axis2/java/core/docs/spring.html. What I am unclear is how the final structure looks like. Need clarifiaction on the below points,
1) What should be the directory structure of my final app for "With ServletContext" as well as "Without ServletContext" ?
2)The .aar file also should be placed in WEB-INF/lib directory? If so how does axis2 recognize this as service as it has compulsion on the directory structure like .aar file and inside it META-INF which contains services.xml. and the classes at the same level as META-INF folder.
I am not sure if I am going wrong in getting the whole picture. Any guidelines or a good tutorial would be highly helpful.

Hot deployment of modified axis archive for web services

Apache axis2 (1.6.1) support hot deployment of web service archives when copied to axis war's web-inf/services folder. But this is limited to new services only. It does not hot deploy 'changed' services .. does anyone have a solution for handling 'changes' in the service archives ?
-abhay
Just figured out a way to do this. Instead of 'over-writing' the service archive file, do a delete and copy of the archive file. Deleting the archive from the web-inf/services directory forces axis to automatically 'undeploy' the services and then adding the changed archive is treated as a 'new service archive' and is automatically deployed.