INTRO J2EE J2EE platform is the 3 tier architecture. Each tier depends upon the tier beneath it. There are certain issues that are unique to each tier and are hidden from the other tiers J2EE Architecture User Interface Tier The user interface tier consists of the simple web applications that take care of the GUI which can be handled easily by the user. The web application programs communicate with the JSP in the middle layer for conveying the user request. The tier is associated with the client machine. Middle Tier This tier contains application business objects
The main task of this tier is connection polling and
transaction management.
The middle tier components are independent of user
interface used in the user interface tier. Continue.. The JSP programs are used to interface with the web application present in the user interface tier.
This tier is associated with the server machine.
Enterprise Information System Tier
This tier is also called as integration tier.
It consists of the enterprise resources such as database
or legacy systems using which the J2EE makes some transactions.
Depends upon the nature of the project EIS will vary.
J2EE APIs and Technologies 1. Java Database Connectivity (JDBC) API: JDBC is a set of interfaces which allows Java applications access to any database. This API has the same purpose as Microsoft‘s ODBC.
2. Remote Method Invocation (RMI): RMI is an
API which allows Java objects to communicate remotely with other objects. 3. Java IDL: IDL is a standard platform-independent declarative language which is used to define interfaces that object implementations provide and client objects call. Java IDL allows any Java object to communicate with other objects in any language by means of IDL. 4. Enterprise Java Beans: EJB is a standard distributed object framework and component model to Java. Enterprise Java Beans are components used in business tier of J2EE. 5. Servlets and Java Server Pages (JSP): Servlets are Java programs running on a web server and that produces results viewed remotely on a web server. 6. Java Message Service (JMS): JMS API is a messaging standard that allows J2EE components to create, send, receive, and read messages. It enables distributed communication between components. 7. Java Transaction API (JTA): JTA allows J2EE components to perform distributed transactions. 8. Java Mail: Java Mail API allows Java components send and receive emails in a platform-independent way. 9. Java API for XML Processing (JAXP): Extensive Markup Language (XML) is a data format for interchanging structured documents on the Web. JAXP allows Java applications to parse and transform XML documents. XML is heavily used in J2EE as a data format. 10. Java Naming and Directory Interface (JNDI): JNDI is a protocol which provides a standard API to access naming and directory services. Naming and directory services associate names with locations, services, information and resources. So, JNDI allows Java applications to find any necessary resource in a standard way. Question Explain architecture of J2EE. List out java technologies supported by J2EE along with their applications. Questions Explain various types of JDBC drivers and comment on selection of driver. Program Consider Bank table with attributes AccountNo,CustomerName, Balance, Phone and Address. Write a database application which allows insertion, updation and deletion of records in Bank table. Print values of all customers whose balance is greater than 20,000. Program Write an RMI application where client sends empno and server returns corresponding salary by querying database. Program Write a program to demonstrate use of Internationalization for various language supports. Program
Write a TCP or UDP client and server program to do
the following: client> java client localhost/IP Port <enter> Enter text: This is my text to be changed by the SERVER <enter> Response from server: revres EHT YB DEGNAHC EB OT TXET YM SI SIHt client> exit