PortingJavaWeb ApplicationToEnterprise Cloud                   Abhishek Chikane                   05 August 2011
WhatWe areGoingTo discussToday?
What Is Cloud?
How To Develop Apps on Cloud?printf(“Hello World”);
How To Port Your Java Web App onCloud?System.out.prinln(“Hello World”);
Why?
What You Are Going To Do?       Move       Your DB       To Cloud                     ?
Flavors Of Clouds?                Software                   As                 Service                Platform As        ...
Web Application
Web Application On Cloud
Amazon Web Service   Infrastructure As Service
Amazon Web Service   Java Web ApplicationUse JDBC String
Google App Engine   Platform As Service
Google App Engine   Platform As Service No JDBC Support
Google App Engine                   Platform As Service   Google Web Application Project     Structure Of     Project
Google App Engine   Platform As Service   JSP   Compilation      Change It To JDK Path   Issue
Google App Engine          Platform As Service               Google App Engine Data Store               Entity            ...
Google App Engine             Platform As Service                   Need To Change The Primary Key Data                   ...
Google App Engine                      Platform As Service                  What?                  Tell OGNL to not do sec...
Google App Engine        Platform As Service                Either Setup Proper Relation Among                The Entities...
Google App Engine               Platform As Service                     Lists returned by Data Nucleus Query              ...
Google App Engine                  Platform As Service                    Update the object in session after each         ...
Google App Engine          Platform As Service                 Java Logging                 If I have System.out.printlns ...
Google App Engine          Platform As Service                 Remove Jars, Classes Of Not                 Supported APIs/...
Google App Engine         Platform As Service               Very Dangerous Error Error 203               How To Avoid?    ...
Google App Engine           Platform As Service                  • Sometimes Needs Eclipse Restart                    For ...
Google App Engine                                        Platform As Service             Structure                   Runni...
Salesforce
Thanks         Abhishek Chikane          5 August 2011
Upcoming SlideShare
Loading in …5
×

Porting Java App To Cloud

761
-1

Published on

Demonstration of moving existing java app to amazon ec2 and Google app engine

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
761
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Porting Java App To Cloud

  1. 1. PortingJavaWeb ApplicationToEnterprise Cloud Abhishek Chikane 05 August 2011
  2. 2. WhatWe areGoingTo discussToday?
  3. 3. What Is Cloud?
  4. 4. How To Develop Apps on Cloud?printf(“Hello World”);
  5. 5. How To Port Your Java Web App onCloud?System.out.prinln(“Hello World”);
  6. 6. Why?
  7. 7. What You Are Going To Do? Move Your DB To Cloud ?
  8. 8. Flavors Of Clouds? Software As Service Platform As Service Infrastructure As Service
  9. 9. Web Application
  10. 10. Web Application On Cloud
  11. 11. Amazon Web Service Infrastructure As Service
  12. 12. Amazon Web Service Java Web ApplicationUse JDBC String
  13. 13. Google App Engine Platform As Service
  14. 14. Google App Engine Platform As Service No JDBC Support
  15. 15. Google App Engine Platform As Service Google Web Application Project Structure Of Project
  16. 16. Google App Engine Platform As Service JSP Compilation Change It To JDK Path Issue
  17. 17. Google App Engine Platform As Service Google App Engine Data Store Entity Table Row Data Store Kind Table JPA/JDO Configuration
  18. 18. Google App Engine Platform As Service Need To Change The Primary Key Data Type To java.lang.Long Type Why? Primary Keys Of Integer, Float or any other data type Entities will not work
  19. 19. Google App Engine Platform As Service What? Tell OGNL to not do security manager permission checks Running Struts Why? GAE has a security manager and you dont have the ability to add the OGNL-specific permissions How? place for this is in a Servlet context listener, executing when the context is initialized OgnlRuntime.setSecurityManager(null); In Dev Environment need to override Freemarker Class
  20. 20. Google App Engine Platform As Service Either Setup Proper Relation Among The Entities and Use JPA For Join Or Make Plain Queries Join Queries
  21. 21. Google App Engine Platform As Service Lists returned by Data Nucleus Query API is not serialized What Is The Error? Data Nucleus List Query results list object can not be Serialization accessed How To Fix It? Copy the query results into ArrayList/Vector
  22. 22. Google App Engine Platform As Service Update the object in session after each change of value. Session Handling Why? The session object is not passed by reference
  23. 23. Google App Engine Platform As Service Java Logging If I have System.out.printlns In My App? Logging Set logger level <= INFO Configuration Where To See Logs?
  24. 24. Google App Engine Platform As Service Remove Jars, Classes Of Not Supported APIs/Frameworks From Your Application Class Loading e.g. Hibernate Problem EJB JAX-RPC JAX-WS JDBC JMX JMS JNDI RMI etc.
  25. 25. Google App Engine Platform As Service Very Dangerous Error Error 203 How To Avoid? Do not put any CPU intensive processing in one request
  26. 26. Google App Engine Platform As Service • Sometimes Needs Eclipse Restart For Servlet Changes Tips For • Need Dev Server Restart For Other Development Changes Environment • If App Fails To Deploy In Between, Rollback Using AppConfig Command And Try Again • Do Not Use Dot (.) In Version Values
  27. 27. Google App Engine Platform As Service Structure Running Data of Project JSP Struts Nucleus List Primary Serialization CompilationError 203 Issue Keys of EntitiesData Store Tips for Join Logging Session Class Development Configuration Environment Queries Handling Loading Problem
  28. 28. Salesforce
  29. 29. Thanks Abhishek Chikane 5 August 2011
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×