how to deploy wso2 products in aws beanstalk? - amazon-web-services

I would like to deploy wso2 products in aws using beanstalk.
Theoretically it should be possible by following the instructions for deploying in webapp mode.
http://wso2.org/project/carbon/3.2.2/docs/admin_guide.html#webappmode
Has anyone managed to achieve this?
What steps were required?

Following the document [1] you shared should work.
However, unless you really have a requirement, it is not that encouraged to run WSO2 Products in web app mode. This is because the Web app container will limit the WSO2 products, where WSO2 Products can function independently in stand-alone mode. Running WSO2 stand-alone over the EC2 might be more appropriate.
[1] http://wso2.org/project/carbon/3.2.2/docs/admin_guide.html#webappmode

Related

WSO2 v3.1.0 Unable to connect to publisher and Devportal portal

I am using wso2 v3.1.0, but I can no longer connect to the API Manager Publisher, API Manager Devportal portal.
・Error 504 occurs when trying to access
・WSO2 resources are build on AWS EC2 instances.
・No infrastructure changes were made before or after the issue.
・Requests to the API are executed normally.
・The problem does not occur with WSO2 v4.0.0, which is used separately, but only with products using WSO2 v3.1.0
Do you have any information on issues similar to this problem? Also, if you know the cause and the solution, I would like the information.
I know that redeploying the WSO2 resource on AWS EC2 may solve the problem, but I would like to consider other avenues before doing it.

WSO2 carbon app deployment for multiple tenants

I am trying to develop a data integration service which will be used in multi-tenant mode. We are exploring different solutions available, and WSO2 is one of them. I am using WSO2 EI 6.1.1 (Carbon).
I have created two tenants from superuser's management console, and deployed the *.car file from each tenant's login.
My understanding of multi-tenancy was that single deployement is done, and multiple tenants/users of the system access the same deployed service without interferring each other or getting blocked.
But here, I have to deploy the same carbon application for each tenant (twice in my case) from management console. How is it multi-tenant then?
I think you have didn't clearly understand the what is an tenant. Consider tenant as a separate organization. For e.g if you take Alphabet, you have Google, Youtube, Maps, etc... Those are your tenants. So each tenant can have their own set of apps.
If you want all the tenant users to access a particular app I think you can mark that as a SaaS app. That way any user from any tenant can access that particular app.
Hope that gives you a clear idea.
You can refer to https://docs.wso2.com/display/AM200/Multi-tenant+Architecture for more details about tenancy concept in WSO2

Web frontend plugin for AWS Elasticsearch service

I am using AWS Elasticsearch service (ES version 5.3). What are the web frontend plugin that can be used with AWS-ES?
The AWS ES supported plugins doesn't seem to support any frontend view.
Also, doesn't seem like Elasticsearch-head plugin can't be installed inside the AWS-ES service. Any suggestion?
Use Kibana. Launch a local instance of it or running in ec2.
Or try cloud.elastic.co which has everything OOTB.
Disclaimer: I'm working at elastic.

Make API call of one java application from another in cloud foundry?

We have a requirement where we would like to call the API of one java application from another application deployed in the same cloud foundry.
Could you please tell if there is any way to access the api.
Check out the Spring Cloud Netflix project:
http://cloud.spring.io/spring-cloud-netflix/
The service registration and discovery features of Eureka are exactly what you are looking for, and are built for use in a cloud environment.
This article contains code samples:
https://spring.io/blog/2015/01/20/microservice-registration-and-discovery-with-spring-cloud-and-netflix-s-eureka
You can leverage Pivotal Spring Cloud Services in your Spring boot App. You might be using Pivotal SCS libraries.
In order to expose API to an another app, you've to enable service discovery and get registered in Eureka Server.
https://docs.pivotal.io/spring-cloud-services/1-3/common/service-registry/writing-client-applications.html#add-application-dependencies

Windows Azure Cloud Service - entry point

I have created a "Windows Azure Cloud Service" project in VS2012.2 with a MVC4 web role. When I run up the project it just gives me a web page. I am trying to develop a web service back-end for my website so I want to be able to call web methods directly from my website which is also running in on Azure.
When F5 my project it just gives me a website. Should I be using a worker role instead of a web role?
If you put your back-end web service along with your web role, then you can use it directly.
If you put your service in a worker role, then you need to open an input endpoint on your worker role so that it can be connected from out side of azure.
Or, you can create another website for your service and map to a virtual dictionary/application on your web role.
You may use both, but a web role is easiest as it sets up everything for you.
Its better to use web role in your scenario, the reason being publishing a web role is pretty straight forward.