Databases JDBC (Java Database Connectivity) –Thin clients – servlet,JavaServer Pages (JSP) –Thick clients – RMI to remote databases –most recommended way is to use entity beans and benefit from the underlying services –Connection pooling 1PTCL Training & Development
Integration Integrating new applications with any legacy Enterprise Information System (EIS) J2EE Connector Architecture (J2CA) CORBA –integration with legacy systems that implement the CORBA specifications COM/DCOM (COM+) –bi-directional interoperability with Microsoft ’s COM+ can access data in Microsoft applications, communicate with Visual Basic clients 2PTCL Training & Development
J2EE Connector Architecture (JCA) A standard architecture for connecting the J2EE platform to heterogeneous EIS systems –ERP, mainframe transaction processing, database systems, and legacy applications not written in the Java programming language –enables the integration of EISs with application servers and enterprise applications By defining a set of scalable, secure, and transactional mechanisms 3PTCL Training & Development
Enables an EIS vendor to provide a standard resource adapter for its EIS The resource adapter plugs into an application server, providing connectivity between the EIS, the application server, and the enterprise application An EIS vendor needs to provide just one standard resource adapter which has the capability to plug in to any application server that supports the J2EE Connector architecture 4PTCL Training & Development J2EE Connector Architecture (JCA)
Multiple resource adapters are pluggable into an application server enables application components deployed on the application server to access the underlying EIS systems 5PTCL Training & Development J2EE Connector Architecture (JCA)
J2EE Connector Architecture 6PTCL Training & Development
Resource Adapter in A.S To achieve a standard system-level pluggability between application servers and EISs, the J2EE Connector architecture defines a standard set of system-level contracts between an application server and EIS The resource adapter implements the EIS-side of these system-level contracts 7PTCL Training & Development
System-level software driver used by an application server or an application client to connect to an EIS By plugging into an application server, the resource adapter collaborates with the server to provide the underlying mechanisms, the transactions, security, and connection pooling mechanisms A resource adapter is used within the address space of the application server 8PTCL Training & Development Resource Adapter in A.S
Application Contract An application server and an EIS collaborate to keep all system-level mechanisms, such as transactions, security, and connection management, transparent from the application components A Connection Management contract A Transaction Management contract Security contract A Message Inflow contract A Lifecycle Management contract A Work Management contract 9PTCL Training & Development
Web Service Support Automatically wraps the business components in to Web services Support for WSDL and UDDI –Publish, search, host Support for Web Services Security standard Reliable SOAP implementation –based on a sequence of asynchronous SOAP communications, receipts, and notifications –guaranteed delivery, “exactly-once ” delivery, ordered conversation A set of convenient graphical tools for development, search, and composing of the Web Services –BEA WebLogic Workshop 10PTCL Training & Development
Messaging Asynchronous method invocations Why? –Performance –Reliability –Support for multiple senders and receivers Application Message Oriented Middleware 11PTCL Training & Development
Message Oriented Middleware MOM Provides –Guaranteed message delivery –Fault tolerance –Load balancing of destinations –Subscription mech. Proprietary solutions –Tibco Rendezvous –IBM MQSeries –BEA Tuxedo/Q –Microsoft MSMQ 12PTCL Training & Development
Java Message Service API –Write code to send and receive msg Service Provider Interface (SPI) –Plug in JMS drivers to allow existing companies to JMS-enable their applications without impacting client- side development Supports –Publish/subscribe –Point-to-point 13PTCL Training & Development
14 JMS Connection Factory JMS Connection JMS Session JMS Producer Or JMS Consumer Serialized Message Connection Naming Service Client JNDI 4:Lookuo JMS Destination 1:RetrieveJ MS Driver Connection Factory 2:Create Connection 3:Create Session 6:Send or Receive Message 5:Create Producer or Consumer JMS Driver Client Runtime Java Message Service
Security in A.Servers Java Authentication and Authorization Server (JAAS) Encryption Auditing HTTPS, basic HTTP authentication with Base64 encoding for services protected by firewalls Role based security –User and group definition –Built-in security data store retains the role, profile, and entitlement data, and is built on a highly optimized LDAP directory Single Sign-On WS-Security 15PTCL Training & Development