Your SlideShare is downloading. ×
Porting Java App To Cloud
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

Porting Java App To Cloud

572
views

Published on

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

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
572
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
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

Transcript

  • 1. PortingJavaWeb ApplicationToEnterprise Cloud Abhishek Chikane 05 August 2011
  • 2. WhatWe areGoingTo discussToday?
  • 3. What Is Cloud?
  • 4. How To Develop Apps on Cloud?printf(“Hello World”);
  • 5. How To Port Your Java Web App onCloud?System.out.prinln(“Hello World”);
  • 6. Why?
  • 7. What You Are Going To Do? Move Your DB To Cloud ?
  • 8. Flavors Of Clouds? Software As Service Platform As Service Infrastructure As Service
  • 9. Web Application
  • 10. Web Application On Cloud
  • 11. Amazon Web Service Infrastructure As Service
  • 12. Amazon Web Service Java Web ApplicationUse JDBC String
  • 13. Google App Engine Platform As Service
  • 14. Google App Engine Platform As Service No JDBC Support
  • 15. Google App Engine Platform As Service Google Web Application Project Structure Of Project
  • 16. Google App Engine Platform As Service JSP Compilation Change It To JDK Path Issue
  • 17. Google App Engine Platform As Service Google App Engine Data Store Entity Table Row Data Store Kind Table JPA/JDO Configuration
  • 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. Salesforce
  • 29. Thanks Abhishek Chikane 5 August 2011

×