Java Framework

1,300 views
1,149 views

Published on

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,300
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
33
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Java Framework

  1. 1. Presentation to LaSalle University’s CIS 679: Middleware Architecture Class Java’s Role in Enterprise Middleware Gene Wenning [email_address] March 20, 2006
  2. 2. Outline <ul><li>Introduction to Java </li></ul><ul><ul><li>What is Java? </li></ul></ul><ul><ul><li>How is a Java Program Developed? </li></ul></ul><ul><ul><li>Java is a Platform </li></ul></ul><ul><li>J2EE: Java’s Role In Enterprise Middleware </li></ul><ul><ul><li>Logical Application Tiers </li></ul></ul><ul><ul><li>Logical Architecture </li></ul></ul><ul><ul><li>Container Frameworks </li></ul></ul><ul><ul><li>Other Relevant Frameworks </li></ul></ul><ul><ul><li>Communication Mechanisms </li></ul></ul><ul><ul><li>Support for XML </li></ul></ul><ul><ul><li>Support for Security </li></ul></ul>
  3. 3. Outline <ul><li>Java’s Next Big Thing in Middleware: Java Business Integration (JBI) API </li></ul><ul><li>Closing Thoughts on Java </li></ul><ul><li>Preparation for future demonstration (4/24/2006) of a Custom Developed, Java Message Broker by reviewing </li></ul><ul><ul><li>Driving Requirements for the Message Broker </li></ul></ul><ul><ul><li>Review the Use Cases that will be demonstrated </li></ul></ul>
  4. 4. Outline (continued)
  5. 5. What is Java? <ul><li>Java is a high level programming language that: </li></ul><ul><ul><li>is object oriented </li></ul></ul><ul><ul><li>supports concurrent programming via threading </li></ul></ul><ul><ul><li>can be executed on many machines and vendor operating systems </li></ul></ul><ul><ul><li>can be “written once” and “executed anywhere” </li></ul></ul><ul><ul><li>is free subject to the acceptance of a reasonable licensing agreement with Sun Microsystems </li></ul></ul>As adapted from Sun’s Java Tutorial http://java.sun.com
  6. 6. How is a Java Program Developed? <ul><li>A Java software developer kit (JDK) is obtained from either Sun Microsystems or your hardware vendor of choice </li></ul><ul><li>You install the JDK </li></ul><ul><li>You set up Java’s environment variables </li></ul><ul><ul><li>JAVA_HOME: specifies where Java’s SDK resides in your file system </li></ul></ul><ul><ul><li>PATH: edit this to include Java’s “bin” directory within your computer’s execution path (i.e. a list of places where it should look to find programs to run) </li></ul></ul><ul><li>You can write Java program’s in a simple text editor </li></ul><ul><ul><li>Only rule… all programs must end in .java in order for the compiler to recognize them </li></ul></ul><ul><li>You compile your Java to progam to byte code </li></ul><ul><li>You execute your byte code within a Virtual Machine </li></ul><ul><ul><li>The virtual machine interprets the byte code and interacts with the native operating system to accomplish your program’s tasks </li></ul></ul>
  7. 7. How is a Java Program Developed? Runs in the Java Virtual Machine Picture taken from Sun’s Java Tutorial Runs in the Java Virtual Machine
  8. 8. Java is a Platform <ul><li>A platform is the hardware or software environment in which a program runs </li></ul><ul><ul><li>Typically described as a combination of the operating system and underlying hardware </li></ul></ul><ul><li>The Java Platform is a software-only platform that runs on top of other platforms (e.g. Microsoft Windows, Mac O/S, Sun Solaris, etc.) </li></ul><ul><li>Consists of two components: </li></ul><ul><ul><li>Virtual Machine (JVM) </li></ul></ul><ul><ul><li>Application Programming Interface (API) </li></ul></ul>
  9. 9. The Java Platform <ul><li>JVM interprets compiled Java byte code into machine dependent instructions </li></ul><ul><li>JVM actually resides in a package called the Java Runtime Edition (JRE). </li></ul><ul><ul><li>Bundled within the JDK </li></ul></ul><ul><ul><li>Enables execution of Java programs without the bloat of the JDK </li></ul></ul>
  10. 10. The Java Platform (continued) <ul><li>An API is a set of routines provided in libraries that extends a language's basic functionality </li></ul><ul><ul><li>Java calls libraries “packages”. </li></ul></ul><ul><ul><li>Packages typically are compressed in a form similar to a ZIP file called Java Archive files (i.e. jars). </li></ul></ul><ul><ul><li>Java programs are always defined as “Classes” because Java is object oriented </li></ul></ul><ul><ul><li>Classes are sometimes referred to as “Beans”. </li></ul></ul><ul><ul><li>Drives the saying “Beans are in the Jar” </li></ul></ul><ul><li>Two types of API’s exist in Java </li></ul><ul><ul><li>Interface Specifications: Non-Functional Libraries </li></ul></ul><ul><ul><li>Implementations: Functional Libraries </li></ul></ul>
  11. 11. The Java Platform (continued) <ul><li>Use of an Interface Specification API library always requires the use of an implementation library </li></ul><ul><ul><li>Typically used when implementation is vendor dependent and is not a native resident of the hardware platform on which Java is executing </li></ul></ul><ul><ul><ul><li>Java’s Database Connectivity (JDBC) API is an example of an interface API (i.e. jdbc.jar) </li></ul></ul></ul><ul><ul><ul><li>Oracle’s JDBC implementation for Java version 1.4 or later is required to use the JDBC API to interact with Oracle (i.e. ojdbc14.jar) </li></ul></ul></ul><ul><ul><ul><li>Both “jars” (i.e. interface and implementation) must be within the program’s executable path to function correctly. </li></ul></ul></ul>
  12. 12. The Java Platform (continued) <ul><li>Examples of native implementation libraries resident within Java platform </li></ul><ul><ul><li>Input / Output </li></ul></ul><ul><ul><li>Math </li></ul></ul><ul><ul><li>Native Interface (JNI) </li></ul></ul><ul><li>JNI enables applications written in C/C++ to interoperate with Java applications on the same machine </li></ul><ul><ul><li>C/C++ can initiate a JVM within its thread of execution, start a Java application, and receive a result </li></ul></ul><ul><ul><li>Java application can call C/C++ application and receive a result </li></ul></ul><ul><li>JNI is significant because it enables legacy C/C++ applications to benefit from Java’s vast libraries / frameworks (e.g. web enablement of legacy applications) </li></ul>
  13. 13. The Java Platform (continued) Figure 1-5 Java EE Server and Containers Any Legacy Supported Server Memory Monitor “ C” IMAN Main “ C” ITK Main Java Native Interface Java Virtual Machine Apache Tomcat Web Application Java Native Interface “ C” PDM API “ C” Vendor API Logical IP Apache Tomcat Start-up Thread of Execution (always running) Memory Monitor consists of spawned concurrent thread always running within Web Container Service Call Thread of Execution spawned by Tomcat Web Container (lives only for the duration of the call) Legacy Adapter Service Only “hand coded” portions of framework JNI in Action
  14. 14. The Java Platform (continued) <ul><li>Java groups their API libraries into three categories </li></ul><ul><ul><li>J2SE: Standard Edition </li></ul></ul><ul><ul><li>J2EE: Enterprise Edition ( http://java.sun.com/j2ee/1.4/docs/api/index.html) </li></ul></ul><ul><ul><li>J2ME: Micro Edition (http://java.sun.com/j2se/1.5.0/docs/api/index.html) </li></ul></ul><ul><ul><ul><li>Not going to cover this… this is really a platform in itself for programming on devices (e.g. cell phones) that have small memory footprints </li></ul></ul></ul><ul><li>J2SE </li></ul><ul><ul><li>All of its API’s can run within the J2SE JVM </li></ul></ul><ul><li>J2EE </li></ul><ul><ul><li>Most of J2EE’s API’s can run within the JVM shipped with J2SE </li></ul></ul><ul><ul><ul><li>For example, Java’s Messaging Service (JMS) </li></ul></ul></ul><ul><ul><li>Those that cannot run in the JVM require the implementation of a J2EE Container to execute </li></ul></ul><ul><ul><ul><li>Note that these “containers” run within the JVM shipped with the J2SE. Said another way… J2EE does not ship a different JVM. </li></ul></ul></ul>
  15. 15. The Java Platform (continued) <ul><li>One big weakness in the Java Platform </li></ul><ul><ul><li>You should not use Java for real-time programming (i.e. when the time between programmatic operations is required to occur at predictable times) </li></ul></ul><ul><ul><ul><li>Due to JVM’s memory manager running concurrently at unpredictable times </li></ul></ul></ul><ul><ul><ul><li>To address this limitation, in January 2006 the JCP released a reference implementation and interface specification called the Real-time Specification for Java </li></ul></ul></ul>
  16. 16. J2EE’s Logical Application Tiers Figure 1-5 Java EE Server and Containers Client Tier Web Tier Business Logic Tier Database / Legacy Tier Browser Application Client Servlet JSP EJB JCA EJB JCA Legacy Application Legacy Application Database Database Typical to find web and business tiers consolidated with standard beans in lieu of EJBs EIS Tier
  17. 17. J2EE Logical Architecture Figure 1-5 Java EE Server and Containers Server Machine Client Machine Application Client Container Browser Application Client Server Machine Web Container Servlet JSP EJB Container EJB EJB Database HTTP HTTP RMI / Direct RMI / JMS / JCA JDBC Legacy Application JCA / JMS Client application containers are typically based on J2SE
  18. 18. J2EE Containers <ul><li>Two types: </li></ul><ul><ul><li>Web Container: Manages the execution of Java Server Pages (JSP) and servlet components </li></ul></ul><ul><ul><ul><li>An example implementation is the Apache Software Foundation’s (ASF) Tomcat server. </li></ul></ul></ul><ul><ul><li>Enterprise Java Bean Container: Manages the execution of Enterprise Java Beans (EJBs) </li></ul></ul><ul><ul><ul><li>Example implementations include: Sun’s J2EE Application Server, JBoss, Oracle Application Server, IBM’s WebSphere Application Server, BEA WebLogic </li></ul></ul></ul><ul><li>Both container types can be supported by a single J2EE Server </li></ul><ul><ul><li>In examples above, only Tomcat is a pure web container </li></ul></ul>
  19. 19. J2EE Containers (continued) <ul><li>Containers are nothing more than J2SE applications running within a JVM </li></ul><ul><li>EJB Containers are useful because they handle transaction and state management, multithreading, resource lookup and pooling, and other complex low-level details </li></ul><ul><li>EJB Containers can generate the software necessary to persist / store an EJBs state within a database </li></ul><ul><ul><li>Known as Container Managed Persistence (CMP) </li></ul></ul><ul><li>EJBs can also manage their own persistence </li></ul><ul><ul><li>Known as Bean Managed Persistance (BMP) </li></ul></ul>
  20. 20. J2EE Containers (continued) <ul><li>Think of J2EE Containers as frameworks to aid the application development and support processes </li></ul><ul><li>EBJ Container Pros and Cons </li></ul><ul><ul><li>Pros </li></ul></ul><ul><ul><ul><li>Better software reuse </li></ul></ul></ul><ul><ul><ul><li>Ability to isolate business logic and allow that logic to be reused from many different application client types (i.e. thin, rich) </li></ul></ul></ul><ul><ul><li>Cons </li></ul></ul><ul><ul><ul><li>Programmers must follow the container’s rules </li></ul></ul></ul><ul><ul><ul><ul><li>No management of EJB / servlet lifecycle </li></ul></ul></ul></ul><ul><ul><ul><ul><li>No management of resource pooling </li></ul></ul></ul></ul><ul><ul><ul><ul><li>No creation of threads </li></ul></ul></ul></ul><ul><ul><ul><li>Performance complaints when using CMP </li></ul></ul></ul><ul><ul><ul><li>Complex to: install, configure, support </li></ul></ul></ul>
  21. 21. J2EE Containers (continued) <ul><li>A single container can support multiple J2EE applications concurrently </li></ul><ul><li>Process of loading an application into a container is known as deployment </li></ul><ul><li>Containers support the following actions on an application </li></ul><ul><ul><li>Start </li></ul></ul><ul><ul><li>Stop </li></ul></ul><ul><ul><li>Deploy </li></ul></ul><ul><ul><li>Undeploy </li></ul></ul>
  22. 22. J2EE Containers (continued) <ul><li>Three types of EJBs </li></ul><ul><ul><li>Session Beans </li></ul></ul><ul><ul><ul><li>Associated with one EJB Client. </li></ul></ul></ul><ul><ul><ul><li>Created and destroyed by the particular EJB Client that is using it. </li></ul></ul></ul><ul><ul><ul><li>Can be stateful or stateless </li></ul></ul></ul><ul><ul><ul><li>Do not survive a system shutdown / restart cycle </li></ul></ul></ul><ul><ul><li>Entity Beans </li></ul></ul><ul><ul><ul><li>Always stateful </li></ul></ul></ul><ul><ul><ul><li>Bean may be shared by multiple EJB Clients. </li></ul></ul></ul><ul><ul><ul><li>States can be persisted across multiple invocations. </li></ul></ul></ul><ul><ul><ul><li>Survive a system shutdown / restart cycle </li></ul></ul></ul><ul><ul><li>Message Driven Beans </li></ul></ul><ul><ul><ul><li>Activated by the arrival of a message on a JMS queue </li></ul></ul></ul>
  23. 23. J2EE Containers (continued) <ul><li>EJB Containers also support Resource Adapters that comply with Java’s Connector Architecture (JCA) </li></ul><ul><ul><li>Support access to legacy enterprise information systems (EIS) (e.g. SAP) </li></ul></ul><ul><ul><li>A resource adapter is a software component that allows a J2EE application to access and interact with the underlying resource manager of the EIS using socket level programming </li></ul></ul><ul><ul><li>Think of JCA as a “thick” adapter </li></ul></ul>
  24. 24. J2EE Containers (continued) <ul><li>Complexity of EJB containers has limited their widespread adoption </li></ul><ul><ul><li>Takes careful planning and thought to leverage their services </li></ul></ul><ul><li>JCA is still in its infancy… some major application vendors (e.g. SAP) have provided implementations but the current thrust is toward SOA concepts using web services in lieu of “thick” adapters </li></ul><ul><li>JCA’s technical architecture is more mature to web services from a quality point of view but market forces are dominating </li></ul>
  25. 25. Other Relevant Java Frameworks <ul><li>Java’s API for Web Services (JAX-WS) </li></ul><ul><ul><li>Enables Java applications to be “web service” enabled </li></ul></ul><ul><ul><li>Auto-generates: </li></ul></ul><ul><ul><ul><li>Client bindings for Java to call another web service from a consumed Web Service Description Language (WSDL) document </li></ul></ul></ul><ul><ul><ul><li>Generates the WSDL document and associated request/response servlets from a Java API interface </li></ul></ul></ul><ul><ul><ul><ul><li>Artifacts are deployed in the web container </li></ul></ul></ul></ul><ul><ul><li>Could also be used as a J2EE communication mechanism </li></ul></ul><ul><ul><li>Eliminates need for previous frameworks such as Apache’s AXIS and JCA </li></ul></ul>
  26. 26. Other Relevant Java Frameworks <ul><li>Java Web Start </li></ul><ul><ul><li>Provides a platform-independent, secure, and robust deployment technology via the web. </li></ul></ul><ul><ul><li>Full featured Java applications are launched on the client machine from a click in the browser </li></ul></ul><ul><ul><li>Unlike applets, downloaded application runs independently of the browser – expect to see a more rich clients </li></ul></ul><ul><li>Apache’s Struts </li></ul><ul><ul><li>Model, View, Controller (MVC) framework for the web tier </li></ul></ul><ul><li>Apache’s Another Neat Tool (ANT) </li></ul><ul><ul><li>Platform independent build environment similar to C’s “make” </li></ul></ul><ul><ul><li>Much larger than “make”, can also work with C/C++ and .Net </li></ul></ul>
  27. 27. Java’s Communication Mechanisms <ul><li>True Communication Protocols </li></ul><ul><li>HTTP / HTTPS / FTP/ REXEC / SMTP </li></ul><ul><li>Java’s Remote Method of Invocation (RMI) </li></ul><ul><ul><li>Enables Java applications / objects running within either a J2SE JVM or J2EE container to intercommunicate with another Java application / object in another J2SE JVM or J2EE container </li></ul></ul><ul><li>Common Object Request Broker Architecture (CORBA) </li></ul><ul><ul><li>Enables Java applications / objects running within either a J2SE JVM or J2EE container to intercommunicate with remote C/C++ applications </li></ul></ul><ul><li>Java’s Native Interface (JNI) </li></ul>
  28. 28. Java’s Communication Mechanisms (continued) <ul><li>API’s to vendor specific implementations (continued) </li></ul><ul><li>Java’s Database Connectivity (JDBC) </li></ul><ul><ul><li>Enables Java applications to communicate with databases (e.g. Oracle, SQLServer, DB2, Teradata, etc.) in a uniform way </li></ul></ul><ul><li>Java’s Messaging Service (JMS) </li></ul><ul><ul><li>Enables Java applications to communicate with message oriented middleware providers (e.g. IBM’s MQSeries, Oracle’s AQ, Tibco Rendezvous, Sonic Software, etc.) in a uniform way </li></ul></ul><ul><li>Java Mail </li></ul><ul><ul><li>Enables Java applications to communicate with mail servers using industry standards protocols like: POP3, SMTP, and IMAP in a uniform way </li></ul></ul>
  29. 29. Java’s Communication Mechanisms (continued) <ul><li>API’s to vendor specific implementations (continued) </li></ul><ul><li>Java’s Naming and Directory Interface (JNDI) </li></ul><ul><ul><li>Performs standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a Java application can store and retrieve any type of named Java object. </li></ul></ul><ul><ul><li>Independent of any specific implementation, Java applications can use JNDI to access multiple naming and directory services, including existing naming and directory services such as LDAP, NDS, DNS, and NIS. This allows Java applications to coexist with legacy applications and systems. </li></ul></ul>
  30. 30. Java’s Support for XML <ul><li>Java API for XML Processing (JAXP) </li></ul><ul><ul><li>Defines API’s for parsing and transformation of XML independent of implementation </li></ul></ul><ul><ul><li>Parsing concepts supported include: </li></ul></ul><ul><ul><ul><li>Converting XML document to a loosely defined Java object called the Document Object Model (DOM) </li></ul></ul></ul><ul><ul><ul><li>Simple API for XML Parsing (SAX) provides an event driven, “push” API to the programmer as XML entities are discovered </li></ul></ul></ul><ul><ul><ul><li>Streaming API for XML (StAX), provides an event-driven, “pull” API for reading and writing XML documents. </li></ul></ul></ul><ul><ul><ul><li>Apache’s Xerces implementation supports parsing XML documents as either a DOM or via SAX </li></ul></ul></ul><ul><ul><ul><ul><li>Enhancements in work to support StAX </li></ul></ul></ul></ul><ul><ul><ul><li>Oracle and BEA have StAX parser implementations available </li></ul></ul></ul><ul><ul><li>Transformation API called TRaX </li></ul></ul><ul><ul><ul><li>Supports XML style sheet transformation language (XSLT) </li></ul></ul></ul><ul><ul><ul><li>Apache’s Xalan project provides TRaX compliant XSLT implementation and also allows its XSLT to be “extended” via Java </li></ul></ul></ul>
  31. 31. Java’s Support for XML (continued) <ul><li>Java API for XML Binding (JAXB) </li></ul><ul><ul><li>Binding is defined as the process of extracting XML content and instantiating a strongly typed Java object representation so that the XML can be programmatically manipulated </li></ul></ul><ul><ul><li>Supports two-way conversion </li></ul></ul><ul><ul><ul><li>Given an XML document, creates Java object representation </li></ul></ul></ul><ul><ul><ul><li>Given a Java object representation, can produce an XML document </li></ul></ul></ul><ul><ul><li>Requires an XML Schema to exist or be created </li></ul></ul><ul><ul><li>Custom mappings between XML entity names and Java class attributes are possible through Java’s support for annotations </li></ul></ul>
  32. 32. Java’s Support for XML (continued) <ul><li>Java API for XML Registries (JAXR) – very similar to JNDI </li></ul><ul><ul><li>Provides a uniform and standard Java API for accessing different kinds of XML Registries. </li></ul></ul><ul><ul><li>An XML registry is an enabling infrastructure for discovering Web services. Specifications include: </li></ul></ul><ul><ul><ul><li>OASIS’ ebXML Registry and Repository standard </li></ul></ul></ul><ul><ul><ul><li>UDDI, which is being developed by a vendor consortium (defacto standard) </li></ul></ul></ul><ul><ul><li>Apache’s Scout project provides an implementation and supports both ebXML and UDDI </li></ul></ul><ul><ul><li>Concept of service discovery is still in its infancy </li></ul></ul>
  33. 33. Java’s Support for XML (continued) <ul><li>Apache has a unique project called XML Graphics </li></ul><ul><ul><li>Supports the W3C’s XSL-FO language which describes how documents should be printed </li></ul></ul><ul><ul><li>Project ships an implementation that takes as input an XML document compliant with the XSL-FO language, passes it through an interpreter, and creates one of the following: PDF, PCL, PS, SVG, Print, AWT, MIF and TXT </li></ul></ul><ul><ul><li>This is a powerful language for document creation from XML via the Java platform </li></ul></ul>
  34. 34. Java’s Support for XML (continued) <ul><li>Cannot understate the importance of XML and Java’s support for it… </li></ul><ul><ul><li>Enables creation of new fourth generation programming languages (4GLs) whose underlying engine is based on Java </li></ul></ul><ul><ul><li>Personally co-developed a language called XSQL (XML based Structured Query Language) </li></ul></ul>
  35. 35. Java’s Support for XML (continued) <ul><li>Case Study: Creation of XSQL 4GL </li></ul><ul><li>Enables the dynamic manipulation of Relational Database Management Systems (RDBMS) compliant with Java’s Database Connectivity (JDBC) via feature rich, interpretative programming environment </li></ul><ul><ul><li>Executes: select, insert, update, and delete statements and stored procedures </li></ul></ul><ul><ul><li>Evaluates expressions: addition, subtraction, multiplication, division, concatenation, etc. </li></ul></ul><ul><ul><li>Supports: looping, variable declaration, etc. </li></ul></ul><ul><ul><li>Allows output of these statement calls to be used as inputs to subsequent calls </li></ul></ul><ul><ul><li>Outputs an XML document that represents the results of these statement executions </li></ul></ul>
  36. 36. Java’s Support for XML (continued) <ul><li>Case Study: Creation of XSQL 4GL </li></ul>Result of Interaction XML XML External System XSLT Interpreter XSQL Spec XSLT Spec XSQL Interpreter XML Doc J D B C A P I RDBMS JDBC Compliant RDBMS Can be deployed into an Integration Broker
  37. 37. Java’s Support for XML (continued) <xsql> <select name=&quot;partExistance&quot;> <sql>select count(*) as count from WDS61.IM_TABLE where PART = ‘MTOCP1’ </sql> </select> <if condition=&quot;partExistance.COUNT==0&quot;> <then> <call procedure-name=&quot;EXEC_ALL&quot; package-name=&quot;ENGINEERING_ADDPART&quot; schema-name=&quot;WDS61&quot;> <arg name=&quot;PART&quot; value=“MTOCP1&quot;> <value>Test MES-MTO BOM Interface</value> </arg> <arg name=“UM&quot; value=“EA&quot;/> <arg name=&quot;PUR_MFG&quot; value=&quot;M&quot;/> <arg value=&quot;L&quot; name=&quot;PART_TYPE&quot;/> <arg name=&quot;DFLT_STKRM&quot; value=&quot;54&quot;/> </call> </then> </if> </xsql> Determining if Part Exists in application database If Part does NOT exist, then add part to application database using provided API Hundreds of lines of Java code executed within a typical statement hidden from XSQL developer and systematically controlled in one place <ul><li>Case Study: Creation of XSQL 4GL </li></ul><ul><li>What an XSQL document looks like </li></ul>
  38. 38. Java’s Support for XML (continued) <root> <partExistance> <count>0</count> </partExistance> <ENGINEERING_ADDPART> <returnValue>0</returnValue> <PART>MTOCP1</PART> <UM>EA</UM> <PUR_MFG>M</PUR_MFG> <PART_TYPE>L</PART_TYPE> <DFLT_STKRM>54</DFLT_STKRM> </ENGINEERING_ADDPART> </root> <ul><li>Case Study: Creation of XSQL 4GL </li></ul><ul><li>What an XSQL output document looks like </li></ul><ul><li>Ouput document can then be sent back to the Integration Broker as a published message from the application </li></ul>
  39. 39. Java’s Support for Security <ul><li>Java’s provides robust security support but it is highly fragmented, redundant, and very complex to put into practice </li></ul><ul><li>Java’s support for security is broken down into five areas: </li></ul><ul><ul><li>Platform Security: represents the security features that are built into the language and are enforced by the Java compiler and virtual machine </li></ul></ul><ul><ul><ul><li>Strong data typing </li></ul></ul></ul><ul><ul><ul><li>Automatic memory management </li></ul></ul></ul><ul><ul><ul><li>Byte code verification </li></ul></ul></ul><ul><ul><ul><li>Secure class loading </li></ul></ul></ul>
  40. 40. Java’s Support for Security (continued) <ul><li>Java’s support for security is broken down into five areas: </li></ul><ul><ul><li>Authentication and Access Control via the following APIs </li></ul></ul><ul><ul><ul><li>Java’s Authentication and Authorization Service (JAAS) API </li></ul></ul></ul><ul><ul><ul><li>Java’s Simple Authentication and Security Layer (SASL) API </li></ul></ul></ul><ul><ul><ul><ul><li>Supports a secure, challenge / response protocol over the network </li></ul></ul></ul></ul><ul><ul><li>Policy and Permissions API </li></ul></ul><ul><ul><ul><li>Enables the developer to create and administer applications requiring fine-grained user access to security-sensitive resources </li></ul></ul></ul><ul><ul><ul><ul><li>Typically file based on permissions that “sit” within a hierarchical tree </li></ul></ul></ul></ul>
  41. 41. Java’s Support for Security (continued) <ul><li>Java’s support for security is broken down into five areas: </li></ul><ul><ul><li>Secure Communications </li></ul></ul><ul><ul><ul><li>Java GSS-API: Used for securely exchanging messages between communicating applications. Based on W3C RFC Generic Security Services Application Program Interface (GSS-API) </li></ul></ul></ul><ul><ul><ul><li>Java Secure Socket Extension (JSSE) API: Enables secure Internet communications. It provides a framework and an implementation for a Java version of the SSL and TLS protocols and includes functionality for data encryption, server authentication, message integrity, and optional client authentication </li></ul></ul></ul>
  42. 42. Java’s Support for Security (continued) <ul><li>Java’s support for security is broken down into five areas: </li></ul><ul><ul><li>Cryptography </li></ul></ul><ul><ul><ul><li>Java Cryptography Architecture: is a a framework for accessing and developing cryptographic functionality for the Java platform </li></ul></ul></ul><ul><ul><li>Public Key Infrastructure Support </li></ul></ul><ul><ul><ul><li>Java Certification Path API: consists of classes and interfaces for handling certification paths </li></ul></ul></ul><ul><ul><ul><li>Java Certificate API: provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths. It contains support for X.509 v3 certificates and X.509 v2 CRLs </li></ul></ul></ul>
  43. 43. Java Business Integration <ul><li>Represents the future of Java in Enterprise Middleware </li></ul><ul><li>JBI is a framework for implementing an enterprise service bus to facilitate the collaboration between services and messages in a consistent manner </li></ul><ul><li>A Java Community Project called “Open-ESB” has been established to provide a reference implementation </li></ul>
  44. 44. Closing Thoughts on Java <ul><li>Very robust platform … can use the software platform to satisfy almost every conceivable middleware need </li></ul><ul><ul><li>If a need is not delivered by Sun, the open source community (e.g. Apache Software Foundation) or Java Community Process satisfies the shortfall </li></ul></ul><ul><li>Difficult technology to get your arms around as a developer compared to Microsoft </li></ul><ul><ul><li>Many options exist to solve your need </li></ul></ul><ul><ul><li>Always evolving </li></ul></ul><ul><ul><li>Fragmented message and documentation </li></ul></ul><ul><li>Best representative of the “Open Source” revolution </li></ul>

×