Java/J2EE & SOA


Published on

Published in: Education
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • For more information you can pick up from this location.

  • For more information you can pick up from this location.


  • Java/J2EE & SOA

    1. 1. Introduction to JAVA AND SOA
    2. 2. LIVE On-line Class Class Recording in LMS 24/7 Post Class Support Module Wise Quiz Project Work on Large Data Base Verifiable Certificate 2 Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions How it Works?
    3. 3. 3 Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Objectives At the end of this module, you will be able to  Understand Java and its advantages.  Learn about SOA with examples, job trends, uses and implementation.  Understand the basics of SOAP and RESTful services.
    4. 4. Slide 4 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Introduction to Java  Java is developed by James Gosling in Sun Microsystems.  This language was initially named as OAK and later renamed as Java. Java is a computer programming language that is  concurrent  class-based  object-oriented  specifically designed to have as few implementation dependencies as possible.
    5. 5. Slide 5 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Features of Java Java is:  Simple  Secure  Portable  Object oriented  Robust  Multi-threaded  Architecture neutral  High performance  Distributed
    6. 6. Slide 6 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Where Java is Used? Java is used in various enterprise level application/frameworks all around the world. Java is used:  in over 850 million PCs as Java Runtime Environment  to develop Android Applications  to develop Hadoop Applications  to develop frameworks for: » Hadoop » Spring » Hibernate » Struct  to develop Business Process Management (BPM) tools.  to develop Web Servers, Application Servers, etc.
    7. 7. Slide 7 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Technologies of Java Some of the Technologies of Java are:  JSP - Java Server Pages. This technology is used to display web pages.  Spring - This framework is used to write project/business logic. It is used widely in the industry and it has all the technologies of Java which is supported right now.  JDBC - Java Database Connectivity.  Hibernate - A framework which is used to connect to database and built on JDBC. Other Java technologies are: Android is developed in Java, Web services in Java.
    8. 8. Slide 8 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Java Versions JDK 1.0 (Java 1) Jan 21, 1996 JDK 1.1 (Java 1) Feb 19, 1997 J2SE 1.2 (Java 2) Dec 8, 1998 J2SE 1.3 (Kestrel) J2SE 1.4 (Merlin) May 8, 2000 Feb 6, 2002 J2SE 5.0 (Tiger) Sep 30, 2004 Java SE 6 (Mustang) Dec 11, 2006 Java SE 7 (Dolphin) July 28, 2011 Stable Java SE 8 (Java 8) Mar 18, 2014 To check which version is running in your system execute the function “java – version” Java SE 7 will be used in this course.
    9. 9. Slide 9 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Use-cases of SOA SOA is used in the following domains: Banking - For debit card and credit card authorization. Credit card/debit card information is taken from the user and sent for authorization and the bank responds whether the transaction is approved or declined.
    10. 10. Slide 10 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Use-cases of SOA (Contd.) SOA is used in the following domains: Manufacturing - For inventory management. If an item reduces below the minimum inventory level then automatically an indication is sent to the dealer for the supply.
    11. 11. Slide 11 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA is used in the following domains: Insurance - To take up insurance of the employees in companies. When an employee joins, his/her details are sent to insurance company over the web for the employee’s insurance. And many more... Use-cases of SOA (Contd.)
    12. 12. Slide 12 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Companies Using SOA  In the banking sector – ICICI bank, HDFC Bank, UTI bank and many more banks are using SOA architecture.
    13. 13. Slide 13 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Companies Using SOA  In IT Sector – IBM, HP, Oracle, Google, Amazon and many more.
    14. 14. Slide 14 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Companies Using SOA  Manufacturing – Apollo tyres, Maruthi, Hyundai etc.
    15. 15. Slide 15 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Companies Using SOA Healthcare – Harvard medical school and its hospitals.
    16. 16. Slide 16 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Jobs Trend in SOA
    17. 17. Slide 17 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Why SOA?  If there is no expertise in developing the services but still if an organization has developed it in-house then time taken to deliver these services will be more and the cost of development also goes up. To avoid these issues, SOA can be used.  There was difficulty in interoperability. This means, ability of a computer system to run application programs from different vendors/locations, and to interact with other computers across local or wide-area networks regardless of their physical architecture and operating systems. With the invent of SOA, this issue is resolved.
    18. 18. Slide 18 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Advantages of SOA  Speed of delivering service to customers increased.  Cost reduced.  Customer can get reliable delivery.  Customer service is improved.  Can communicate with similar/dis-similar systems for exchanging information/data.  Business workflow can be managed easily.  Business changes are easily integrated with business layer.
    19. 19. Slide 19 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA - Introduction  SOA stands for Service Oriented Architecture. It is a design pattern or software architecture which provides application functionality as service to other applications. SOA functionality is not depending on any vendor, product or application.  One of the functionality provided by SOA is getting online bank statement. This functionality can be combined with other features of the application to provide the full fledged application. The application will use the service provided by the vendor over the network without human interaction.  A simple meaning of SOA - Functionality/Functions provided by a vendor over internet/network for a cost/no-cost.
    20. 20. Slide 20 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA - Architecture Service Broker Service Consumer Service Provider Client Service Service Contract …... ……. PublishFind Interact
    21. 21. Slide 21 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA - Architecture Service 1 Service 2 Service 3 Service 4 Service 5 Service 6 Service 7 Service 8 Security Service Layer Application 1 Application 2 Application 3 Web Application Common CRM Application Database Reporting
    22. 22. Slide 22 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA – Architecture in Detail Consumer Consumer Layer Integration Layer Business Process Layer Service Layer Component Layer Operational Systems Layer
    23. 23. Slide 23 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOA – Framework  Consumer Interface Layer - This layer is used by the customers.  Business Process Layer - Provides the business process flow. Also accommodates new changes in the business easily, hence this layer is provided.  Service Layer - This layer comprises of all the services in the enterprise.  Component Layer - This layer has the actual service to be provided.  Operational Systems Layer - This layer contains the data models.
    24. 24. Slide 24 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Principles of SOA  Service Loose Coupling - Service does not have high dependency which is obtained through loose coupling.  Service Abstraction - Service hides the implementation from outside world.  Service Reusability - Services can be used again and again instead of rewriting them.  Service Statelessness - They usually do not maintain the state to reduce the resource consumption.  Service Discoverability - Services are registered in registry. Client can discover them in the service registry.
    25. 25. Slide 25 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Web Services Introduction  SOA is the concept and using Web services SOA can be built.  Web services are the services provided on the net. Producers will create services and publish. Consumers look for the services and connect with the producers and will access the required services.  Web services can be implemented using SOAP - Simple Object Access Protocol an XML based protocol or using Restful Services which uses HTTP protocol.
    26. 26. Slide 26 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOAP  SOAP is a protocol to access Web services.  SOAP stands for Simple Object Access Protocol. This protocol is based on XML.  SOAP was designed in 1998 by Dave Winer, Don Box, Bob Atkinson, and Mohsen Al-Ghose. Request 1 Request 1 Response1 Response1 SOAP message context SOAP message context Handler 1 Handler 2 Client Request 1 Response1 SOAP message context Handler Service SOAP Service Requester Service Provider
    27. 27. Slide 27 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOAP - Example For example: If we want to get the approval/declined status for credit card transaction from bank using SOAP, following steps to be done/will be executed: In client module, write the details about the customer details like credit card, account number, expiry date, CVV2 etc., in SOAP format. This SOAP message is sent on web to web service which provides the desired service. The web service unpacks the SOAP message and converts into a command that the application can understand. Application will get the credit card information. It does the required processing and generates the response either approval/declined status in SOAP message. This SOAP message is sent back to the client. Client unpacks the SOAP message and gets the required information.
    28. 28. Slide 28 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Credit card account number expiry date CVV2 …….. Client Module SOAP Format Output in Web Web Service unpacks the SOAP message and converts into a command that the application can understand SOAP Message SOAP – Flow Diagram
    29. 29. Slide 29 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions SOAP Files - WSDL, Client Generation Server Java Code - which does the actual operation/provides the service. WSDL File - Web Service Description Language. This file says the information about the services like the functions and what input it takes and what output it generates etc. Client Using WSDL file, we can generate the client and can execute the web services.
    30. 30. Slide 30 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Restful Services  REST is based on web standards and HTTP Protocol. REST first was defined by Roy Fielding in 2000.  In REST based architecture, everything is a resource. The resource is accessed by HTTP methods.  RESTful services support HTTP methods like GET, POST, HEAD, DELETE etc., like SOAP has client server, even REST should have a Server which provides the service and a Client to access the service.  To access the server method, client invokes the server method using an URL as done in servlets. Server method takes the input, processes it and responds back to the client. This way any operation/service can be executed on web.
    31. 31. Slide 31 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions DEMO
    32. 32. Questions 32 Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions
    33. 33. Slide 33 @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions Course Topics  Module 1 » Introduction to Java  Module 2 » Data Handling and Functions  Module 3 » Object Oriented Programming in Java  Module 4 » Packages and Multi-threading  Module 5 » Collections  Module 6 » XML  Module 7 » JDBC  Module 8 » Servlets  Module 9 » JSP  Module 10 » Hibernate  Module 11 » Spring  Module 12 » Spring, Ajax and Design Patterns  Module 13 » SOA  Module 14 » Web Services