How to build a Java Web App in the Cloud

Post on 13-Jan-2015

814 views 6 download

Tags:

description

-

Transcript of How to build a Java Web App in the Cloud

๏๏๏๏

➢➢➢➢

➢➢➢

Are you struggling to code, design while solving all difficulties mentioned before?

You are in the right place to change your development process.

WSO2 App Factory is the ideal solution for enterprises, that need to create and manage applications, while increasing developer

Productivity and delivering high

Quality applications on time.

No prior environment setup.You need to sign up with https://cloud.wso2.com/login, create a web app and launch it.demo...

How do I change my code to apply a nice style?

➢ Cloud IDE for WSO2 App Cloud.➢ Security is established using OAuth protocol.➢ modify code →build →git add → git commit → git push

A complete Eclipse-based SOA development environment for the award-winning WSO2 Carbon platform.Integrates with WSO2 App Factory to facilitate management of application development lifecycles.

login → update applications → change code → commit → etc.

➢ Build farm to build applications➢ Easy access, account already provisioned➢ Trigger builds only on your applications➢ Auto Build➢ Build information - success/failure, last build time➢ Build logs

If you are contributing to multiple apps, context switching is easy.

➢ Latest application related events are available in wall

➢ Latest build and deploy information are available➢ You can launch the deployed application and go

to the page you were working on.➢ Which version of Application X in Testing?➢ Why Application X failed in UAT? check the

issues reported and reason for demoting back to Development

How do I connect to a database in my web application?How do I communicate with external services?Do I need to recompile to deploy in Testing stage with new database connection URL?

JNDI lookupsAPIsConfiguration vs codingDemo… create database, datasource, example code,etc.

Cut a new branch in a single click.Build it, deploy it, test it as a developer.Ready for QA? promote to Testing

Easy access to issue tracker.Fix and resolve the issue.

Download or View Logs

PaaS provides you a distributed cache.CacheManager cacheManager1 = Caching.getCacheManagerFactory().getCacheManager("sampleCacheManager");

Cache<string integer=""> cache = cacheManager.getCache("sampleCache");</string>

int value1 = 9876;

cache.put(key, value1);

int value = cache.get(key).intValue()

Add Maven dependencies and package inside the war file.