Is it possible to write libs in clojure and deployed in WSO2 as service to export? - clojure

anyone have tried a web service written in Clojure and runing in WSO2 AS ?

WSO2 AS is based on apache tomcat. Therefore I think it should work. I haven't tried the scenario. You can create a war out of your clojure project and deploy it in the WSO2AS.
You can refer to http://www.luminusweb.net/docs/deployment.md#deploying_to_tomcat

Related

How to deploy the Loopback in Weblogic server? Need simple explanation

I am new to development. i created a small loop back application for my rest services.
its working fine in local .
I don't know how to deploy it the weblogic server. please advise step by step process for deployment.
FYI for Angular deployment we are using maven process to convert it war file
is any similar process available?
It is not possible to run a loopback application inside a weblogic server. Loopback needs node.js runtime server to run, whereas weblogic only supports Java/J2EE applications.

Deploying Ruby/Python backend services in WSO2 EI

I have written several webservices in Python and Ruby and would like to integrate them with WSO2 Integration Studio. I tried following the instructions on the docs about sending messages to services here but it's about Java microservices only. Am I supposed to deploy my services elsewhere and only use http endpoints to integrate them? Thank you
You can only copy JAR files to the /wso2/msf4j/deployment/microservices folder and deploy them in the MSF4J profile of WSO2 EI.
Am I supposed to deploy my services elsewhere and only use http endpoints to integrate them?
Yes, This is the way to achieve this.

WSO2 AS guice integration

I am using WSO2 application server to deploy my web services. I would like to use guice in my project. I have read a maksim blog about axis2 guice integration. He has used web.xml for injection however i do not know how could i change web.xml in wso2 as.
Thanks
You didn't want to change web.xml on WSO2 AS. You can have web.xml on your WS project.
here is complete guide on developing WS and how to deploy on WSO2 AS using WSO2 Developer Studio.
http://wso2.com/library/articles/2012/09/develop-deploy-web-applications-using-wso2-developer-studio/
Using WSO2 DS you can ease your development effort.
There is no much difference. You implement your webservice/webapp. Web.xml is the part of your webapp . Create the war file and deploy that in AS. Keep the dependency jars(guice lib etc ..) in the repository/components/lib folder.

Deploying Different WSO2 product as single carbon application project

I am using WSO2 DSS, ESB and BPS for my project.
They are working fine in respective servers. But my idea is to integrate DSS, ESB & BPS into one car file(or some other deployment archive file) and thus making the deployment easier.
I have a Carbon application project created in Developer studio which has DSS project, ESB Config project, BPEL workflow and a Web application in it.
When I export it, it exports only the ESB & BPS and excludes Web application.
Is there a way to generate one deployment archive which would contain all the mentioned project? And is it possible to deploy a java application in WSO2 server since it has tomcat in it?
Thanks in Advance.
You can deploy webapplications in WSO2 Application server. Refer this. There is a server role which is defined in the server and also in the CAR file for each deployable artifacts. So if you are going to use one server lets say application server with DSS,ESB and BPS installed you need to add DSS's ESB's and BPS's server roles so artifacts which has respective servers role can be deployed in bundled server. Please refer following for server role management.
http://docs.wso2.org/wiki/display/AS510/Introduction+to+Server+Roles
Q>
Is there a way to generate one deployment archive which would contain all the mentioned project?
Ans>> Yes. It is possible. Carbon Application Archive(CAR) file is the single deployable module to package all the above mentioned different artifacts type to a single deployable archive.
You can use either IDE or Maven to generate the CAR file for your artifacts. Please refer to Dev Studio Documentation for more information.
Q> And is it possible to deploy a java application in WSO2 server since it has tomcat in it?
Ans>> You can deploy a Java application in WSO2 Application Server but in order to do that you need to convert your application to a Web-Services since WSO2 provides mechanism to expose your applications as Web Services. For that you can use either Axis2 Web Service or Jax-WS web-Service.
WSO2 Developer Studio supports creation of Axis2 Web-Services as well as Jax-WS web services. Please refer to Axis2 Artifact and Jax-WS Artifact Documentation for more information.
Also if you have a Java based Web-Application, you may deploy that Web-Application in WSO2 Application Server and WSO2 Dev Studio supports implementing Web-Applications as well.
Thanks and Regards,
Harshana

Apache Axis2 Webservice in regular shared hosting service

I developed a webservice in java with Axis2, and now I need to put it online.
In order to do it I signed a shared hosting service, but as I am not familiar with this kind o stuff, I don´t really know how to do it.
It´s a regular shared hosting service, is runs on Apache Tomcat, but I only have access to my home folder, public_html this kinda stuff.
Can I run my webservice by deploying it and putting it into public_html?
Do I have to deploy it in some way as to add Axis2 files to it, to make it work?
Any help will be much appreciated,
Lucas
You need to find a way to deploy .war files. In this case you have to use the Axis2 .war distribution and deploy it in your service hosting environment.
Normally you are given public_html folders in the hosting environments created by appche httpd where you can only deploy html pages. You need to clarify this with your service hosting provider.
You can use WSO2 Stratos live[1] for this kind of purposes. This article[2] describes how to deploy the axis2.war in stratos live.
In fact WSO2 application server[3] is specially written to deploy axis2 artifacts. So even without deploying axis2.war you can directly upload your service as well.
[1] https://stratoslive.wso2.com/home/index.html
[2] http://wso2.org/library/knowledge-base/2011/08/run-apache-axis2-webapp-wso2-cloud-0
[3] https://appserver.stratoslive.wso2.com/home/index.html