Your SlideShare is downloading. ×
Java PaaS Application Deployment on CloudBees - Demo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Java PaaS Application Deployment on CloudBees - Demo

1,524
views

Published on

Java PaaS Application Deployment on CloudBees - Demo

Java PaaS Application Deployment on CloudBees - Demo

Published in: Technology, Education, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,524
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Many Apache projects support interaction with a relational database. Creating a new connection for each user can be time consuming (often requiring multiple seconds of clock time), in order to perform a database transaction that might take milliseconds. Opening a connection per user can be unfeasible in a publicly-hosted Internet application where the number of simultaneous users can be very large. Accordingly, developers often wish to share a "pool" of open connections between all of the application's current users. The number of users actually performing a request at any given time is usually a very small percentage of the total number of active users, and during request processing is the only time that a database connection is required. The application itself logs into the DBMS, and handles any user account issues internally.WEB-INF/cloudbees-web.xml<?xml version="1.0"?><cloudbees-web-appxmlns="http://www.cloudbees.com/xml/webapp/1"> <resourcename="jdbc/DATASOURCE_NAME"auth="Container"type="javax.sql.DataSource">   <paramname="username"value="USERNAME"/>   <paramname="password"value="PASSWORD"/>   <paramname="url"value="JDBC_URL"/>   <!-- Connection Pool settings -->   <paramname="maxActive"value="5"/>   <paramname="maxIdle"value="2"/>   <paramname="maxWait"value="10000"/>   <paramname="removeAbandoned"value="true"/>   <paramname="removeAbandonedTimeout"value="60"/>   <paramname="logAbandoned"value="true"/>   <!-- Purge invalid connections -->   <paramname="validationQuery"value="SELECT 1"/>   <paramname="testOnBorrow"value="true"/>  </resource></cloudbees-web-app>WEB-INF/web.xml<resource-ref><res-ref-name>jdbc/DATASOURCE_NAME</res-ref-name><res-type>javax.sql.DataSource</res-type><res-auth>Container</res-auth></resource-ref>
  • The database is simply available as a JNDI resource as soon as it is deployed – there is no need to chase down JDBC drivers, connection strings and configure JNDI.
  • Transcript

    • 1. Java PaaS Application Deployment on CloudBees - Demo http://clean-clouds.comhttp://clean-clouds.com
    • 2. Signup for CloudBeeshttp://clean-clouds.com
    • 3. Account created Successfullyhttp://clean-clouds.com
    • 4. Loginhttp://clean-clouds.com
    • 5. Serviceshttp://clean-clouds.com
    • 6. Dashboardhttp://clean-clouds.com
    • 7. CloudBees Dashboard:- Add Serviceshttp://clean-clouds.com
    • 8. CloudBees Dashboard:- Serviceshttp://clean-clouds.com
    • 9. Subscription of RUN@cloud Application Servicehttp://clean-clouds.com
    • 10. RUN@cloudhttp://clean-clouds.com
    • 11. Applicationshttp://clean-clouds.com
    • 12. Create a New Applicationhttp://clean-clouds.com
    • 13. Application Deploymenthttp://clean-clouds.com
    • 14. Application is Ready!!!http://clean-clouds.com
    • 15. Application Dashboardhttp://clean-clouds.com
    • 16. Upload modified WAR filehttp://clean-clouds.com
    • 17. Upload modified WAR filehttp://clean-clouds.com
    • 18. Upload modified WAR filehttp://clean-clouds.com
    • 19. All Deploymentshttp://clean-clouds.com
    • 20.  MySQL database  Management of your database is typically done using a MySQL client like the mysql command line program distributed with MySQL  Apache DBCP connection pool implementation  External Databases ◦ To connect your application to a non-CloudBees database, define the database as a resource-ref in the app web.xml file,and bind it to your database as a resource in the cloudbees-web.xml file and include the standard JDBC connection settings for connecting to the database. Database as a Servicehttp://clean-clouds.com
    • 21. Subscription of RUN@cloud Database Servicehttp://clean-clouds.com
    • 22. Create a MySQL databasehttp://clean-clouds.com
    • 23. Database createdhttp://clean-clouds.com
    • 24. Database Dashboardhttp://clean-clouds.com
    • 25. Database Snapshotshttp://clean-clouds.com
    • 26. Connect to Remote DB Hosthttp://clean-clouds.com
    • 27. SQL script for Database - Ihttp://clean-clouds.com
    • 28. SQL script for Database - IIhttp://clean-clouds.com
    • 29. http://clean-clouds.com
    • 30. Download with Linkedin Username/Password http://clean-clouds.com
    • 31. Download with Linkedin Username/Password http://clean-clouds.com
    • 32. Download with Linkedin Username/Password http://clean-clouds.com
    • 33. Download with Linkedin Username/Password http://clean-clouds.com
    • 34. Download with Linkedin Username/Password http://clean-clouds.com
    • 35. http://clean-clouds.com