How to build a Java Web App in the Cloud
-
Upload
wso2 -
Category
Engineering
-
view
816 -
download
6
description
Transcript of How to build a Java Web App in the Cloud
![Page 1: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/1.jpg)
![Page 2: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/2.jpg)
๏๏๏๏
![Page 3: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/3.jpg)
๏
๏
๏
๏
๏
๏
๏
๏
![Page 4: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/4.jpg)
![Page 5: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/5.jpg)
➢➢➢➢
➢
➢
![Page 6: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/6.jpg)
➢
➢
➢
➢➢➢
➢
![Page 7: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/7.jpg)
Are you struggling to code, design while solving all difficulties mentioned before?
You are in the right place to change your development process.
![Page 8: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/8.jpg)
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.
![Page 9: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/9.jpg)
No prior environment setup.You need to sign up with https://cloud.wso2.com/login, create a web app and launch it.demo...
![Page 10: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/10.jpg)
How do I change my code to apply a nice style?
![Page 11: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/11.jpg)
➢ Cloud IDE for WSO2 App Cloud.➢ Security is established using OAuth protocol.➢ modify code →build →git add → git commit → git push
![Page 12: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/12.jpg)
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.
![Page 13: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/13.jpg)
➢ 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
![Page 14: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/14.jpg)
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
![Page 15: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/15.jpg)
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?
![Page 16: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/16.jpg)
JNDI lookupsAPIsConfiguration vs codingDemo… create database, datasource, example code,etc.
![Page 17: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/17.jpg)
Cut a new branch in a single click.Build it, deploy it, test it as a developer.Ready for QA? promote to Testing
![Page 18: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/18.jpg)
Easy access to issue tracker.Fix and resolve the issue.
![Page 19: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/19.jpg)
Download or View Logs
![Page 20: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/20.jpg)
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()
![Page 21: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/21.jpg)
Add Maven dependencies and package inside the war file.
![Page 22: How to build a Java Web App in the Cloud](https://reader031.fdocuments.net/reader031/viewer/2022020217/54b4eba94a795994458b4649/html5/thumbnails/22.jpg)