Cloud Blog

Category Archives: Integration Cloud

May 31 Webinar on WSO2 Cloud Latest News and Roadmap

On Tuesday, May 31, 2016, I will be giving a webinar on the current state and future directions of WSO2 Cloud – our shared cloud service.

Cloud roadmap webinar sm

I will be demoing and talking about the latest updates to both API Cloud (to which we are finally adding API Monetization capabilities!) and Integration Cloud (that got a complete revamp, is now based on the docker/Kubernetes architecture, no longer has compatibility limitations, and besides Java also includes microservices and PHP).

I will also talk about the future roadmap including our Identity Cloud and Integration Cloud plans.

And I will be very happy to answer any questions that you have. This is a great opportunity for us to talk to learn more from each other.

Please register at the webinar page to reserve your spot: WSO2 Cloud Platform: Vision and Roadmap

App Cloud: New, Shiny, Docker-based

Today I am excited to announce that we have launched new generation of our application hosting platform – WSO2 Integration Cloud (also formerly known as App Cloud).

Unlike the earlier generation of the platform, new version is based on container (docker and Kubernetes) technology rather than WSO2 Application Server-based in-JVM multutenancy that we had earlier. This gives two huge benefits that our customers have been demanding:

  • Great application compatibility: your application gets a Tomcat, or Apache server, or WSO2 App Server container and is not sharing it with others, and thus does not have to conform to various security policies,
  • Broader runtime choice: with the new architecture it becomes easier for us to expand to a bigger set of supported runtimes. Besides Tomcat/WSO2 App Server-based Java, we already are offering microservices (MSF4J), and PHP, with more to come in the future.

App Cloud - New App Creation

Below is a quick FAQ about the launch:

What Can I Do With the New Integration Cloud?

Integration Cloud is application hosting platform, so you can:

  • Upload your Java (WAR package), PHP or MSF4J application from your file system or URL,
  • Get it running in selected runtime,
  • Scale up and down by changing the number of containers,
  • Upload new versions,
  • Create MySQL databases and store data there,
  • Create, store, copy, and modify environment variables.

When Will It Become Available?

It is available effective now.

How Do I Try It?

Just:

  1. Go to WSO2 Integration Cloud page and sign-up if you do not have an account yet, or Sign In (top right menu item).
  2. Pick Integration Cloud on the index page.

Is the Old App Cloud Still Available?

Yes, if you still have your application and data inside the old App Cloud, you can get to it by clicking the corresponding link at the top banner in the new App Cloud.

We will keep the old App Cloud running in parallel to the new App Cloud until May 15, 2016 – so please make sure that you migrate everything by the end of the month.

How Much Does It Cost?

WSO2 Integration Cloud is in free beta.

How Do I Provide Feedback or Get Help?

Click the Support menu inside App Cloud and we will get back to you!

Try the new WSO2 Integration Cloud today and let us know what you think!

Adding Administrators to Your WSO2 Cloud Organization

We have added the ability to invite more administrators to your organization in WSO2 Cloud.

This way you delegate all the permissions that are there in WSO2 Cloud including all possible configuration rights, billing, and ability to invite new team members.

To add another administrator:

1. Click the Members menu:

Members menu

2. In the Members screen, click the Invite Members button.

3. In the Member List box, type the email addresses of the users you want to invite,

4. From the Member Roles drop-down list, select Common / Admin:

Pick admin role

5. Click the Invite button.

The users you invite, will receive an email with one-time link that they will need to click to join your organization and get administrative permissions.

Try it yourself in WSO2 Cloud today.

Your own JAX-RS as an OAuth Web API in Minutes!

UPDATE: This is an outdated post. WSO2 App Cloud has been since then replaced with WSO2 Integration Cloud and App Server in it with Tomcat. General principals still apply and JAX-RS is a supported backend implementation in the Integration Cloud. Click Support inside the Integration Cloud UI if you need help.

We’ll be using WSO2 Application server in Cloud to host a secured JaxRS service. A future post will explain how to do it with Tomcat, but this post is written for WSO2 App Server.

After writing the JAX-RS service we are going to protect it using OAuth with several clicks. Then you’ll be able to,

  1. Access to the back-end JAX-RS service will be OAuth protected
  2. Advertise the API in an API store for the world to see
  3. Access to the back-end JAX-RS service will be throttled
  4. Allow people to subscribe to these APIs

This is the high-level diagram,

Step 1 – Adding security to the JAX-RS service in App Cloud

Step 2 – Expose it as an OAuth protected API

Step 1 – Adding security to the JAX-RS service in App Cloud

Here I am going to add security to my JAX-RS service by introducing the following lines to the web.xml. As you can see this is plain Tomcat based security. And you have not defined a Realm here. I will explain what happens to the realm below.

<security-constraint>
 <web-resource-collection>
 <web-resource-name>ElephantTracker</web-resource-name>
 <url-pattern>/*</url-pattern>
 </web-resource-collection>
 <auth-constraint>
 <role-name>admin</role-name>
 </auth-constraint>
</security-constraint>

<login-config>
 <auth-method>BASIC</auth-method>
 <realm-name>ElephantTracker</realm-name>
</login-config>
 

Now only the people in admin role can call this service. If you are familiar with Tomcat security, the question is: where is the realm and is the role coming from? It is coming from the Cloud user store.

 

We have simplified a lot of security related details in WSO2 Application Server. Now let’s try to invoke it using a REST Client.

 curl -v -H   
 "Authorization: Basic Base64_encoded_String_of_your_Username:Password  
 "https://appserver.dev.cloud.wso2.com/t/perftest/webapps/securedjrs-default-SNAPSHOT/services/customers/customerservice/customerservice/customers/123  

The trickiest part is figuring out the username. The “@” sign in the email address must be replaced with a “.”  and the tenant domain must be appended with the “@” sign.

 
dimuthu.leelarathne@gmail.com == becomes ==&gt; 
dimuthu.leelarathne.gmail.com@perftest  

Here “perftest” is my tenant domain name.

Next, remember to turn off “http” from transports.

Step 2 – Expose it as an OAuth protected API from API Cloud

Now go into API Cloud and publish the JAX-RS as a service.

Add the proper resource URL patterns and end points. In my case I am going to add “customerservice/customers/{id}” as the url pattern and endpoint of the service as the endpoint. In my case, it is something as follows,

http://identity.cloud.wso2.com/t/perftest/webapps/securedjrs-default-SNAPSHOT/services/customers/customerservice

Give the username/password to access it.

Screen Shot 2015-08-24 at 1.49.35 PM

Woala you are done! Now you have an API in the store, that is accessible the whole wide world!

Meet the New WSO2 App Cloud

UPDATE: Since that time, App Cloud has been rebranded to WSO2 Integration Cloud and added even more exciting functionality.

We have completely revamped user experience for our PaaS to improve usability and bring it more modern look and feel.

Application overview page now has a dashboard from all the most important pieces of information about the application. You can even start editing the code right from it!

Application overview page in WSO2 App Cloud

By default, left-hand menu is closed to save screen space – but you can easily open it by clicking the “hamburger” button (that we all grew to like in various mobile apps these days):

Application menu slides out and lets you pick the page you need

The application wall, reporting who did what and when is still there on the right hand side:

Application wall slides in on the right side and gives a complete picture of what is going on in the project

And finally, there is a much improved Issue Tracker with sorting, filtering, commenting, and other long-requested functionality:

Issue and task tracking in WSO2 App Cloud

Sign up (or sign in – if you have an account) for WSO2 App Cloud and give it a try. It is still in free beta so there is no credit card required!

Spring and Hibernate in WSO2 App Cloud

Great news for Java developers: WSO2 App Cloud PaaS has added native support for both Spring and Hibernate frameworks:

Selecting Spring application type in WSO2 App Cloud PaaS

We have published detailed step-by-step instructions for both frameworks here: https://docs.wso2.com/display/AppCloud/FAQ.

WSO2 App Cloud is the most comprehensive platform-as-a-service (PaaS) in the market covering the whole application lifecycle from issue and task tracking, to Git source code repository, to cloud IDE, databases, lifecycle management, and more.

Happy coding and hosting!

Categories

Recent Posts

Most Popular Posts