Вы находитесь на странице: 1из 20

Enterprise Computing - Question Bank - Unit I PART A 1. Define Enterprise Computing. 2. Suggest the need of Enterprise Computing 3.

. List out the components of Enterprise Computing 4. List out the common services for Distributed Enterprise Communication 5. How can we employ information technology by an enterprise system? 6. Abbreviate the Following: i) ERP v) CORBA ix) JTS xiii) EJB ii) B2B vi) RMI x) JMS xiv) JNDI iii) EAI vii) SPI xi) COM xv) IIOP iv) B2C viii) API xii) DCOM xvi) GIOP xviii) CLOB xvii) BLOB 7. State TRUE or FALSE Distributed processing means that the resources from one computer are distributed across many clients in the network 8. How will you avoid undesired behavior of your software from a direct manipulation? 9. Differentiate RDBMSs an ODBMSs 10. What are the responsibilities of Middle tier? 11. Describe about Batch updates. 12. Classify: JDBC Drivers 13. What are the types of statement? 14. Difference between prepared statement and Callable statement. 15. What are the methods inherited from interface java.sql.PreparedStatement? 16. What are the methods inherited from interface java.sql.Statement? 17. Define BLOB and CLOB 18. Define Stored Procedure. 19. Write a short note on Component Model Interfaces 20. How can we improve the reliability of Enterprise software? 21. Write the function of i) DDL Compiler iii) Query Manager ii) DML Compiler iv) Physical Storage Manager 22. How can we manage a transaction in DBMS? 23. Define Schema 24. Write down the steps involved in configuring various JDBC driver types 25. How can you obtain information about query results in JDBC? 26. Tell the function of DriverManager.

27. Illustrate a typical configuration for Type 2 JDBC Drivers. 28. Illustrate a typical configuration for Type 3 JDBC Drivers. 29. Illustrate a typical configuration for Type 4 JDBC Drivers. 30. Classify: ResultSet types 31. What do you think about obtaining connection from JNDI and DriverManager. PART B 1. How will you enable enterprise software with a higher degree of reliability? 2. Discuss in detail about object oriented software development for the enterprise. 3. How information technology is utilized by the enterprise? 4. Explain in detail about Updateable Result Sets in JDBC 2.0 5. What do you mean by hierarchy of Exceptions? Give a Detailed note on SQLException

UNIT II DISTRIBUTED ENTERPRISE COMMUNICATION ENABLING PART - A 1. How does CORBA differ from RMI in distributed Java programming? 2. What are the responsibilities of ORB? 3. Which protocol is used for invoking methods on CORBA object over the internet? 4. Write a short note on object adaptors. 5. What are the Files generated for each interface by the idl2java compiler? 6. What is an interface Repository? 7. What is callback mechanism in CORBA? Explain with an example. 8. Explain Naming service in CORBA 9. What do you know about RMI? 10. Define the terms marshalling and unmarshalling in RMI? 11. How do we build a simple client/server application by using RMI? 12. What are the responsibilities of remote reference layer in RMI architecture? 13. Write down the packages and tools available in RMI. 14. Define JRMP and its message header format. 15. Define IIOP 16. What are the sub protocols identifiers in

JRMP? 17. Classify the JRMP message types 18. Describe about Multiplex stream protocol. 19. Define RMI/IIOP 20. Define RMI/JRMP 21. What are the advantages of RMI? Explain the working principle of RMI with suitable example. 22. Explain the components of ORB Architecture. 23. How CORBA is related with Java? Give example. 24. State the need of callbacks. 25. What is ORB? 26. Give account on IDL. 27. List the benefits of COM 28. Describe CORBA Naming service 29. What are the advantages of CORBA? 30. What does CORBA provide? 31. Give some of the features supported by POA? 32. Explain briefly about callbacks with example 33. What are the essential parts of CORBA? 34. What are the requirements need to work invocation interfaces and object adapters? 35. What are the requirements need to work invocation interfaces and object adapters? 36. Specify any four services supporting enterprise distributed computing. 37. What is push model? 38. What is pull model? PART B 1.Draw the Object Management Architecture and explain in detail the CORBA services. 2.Write in detail about CORBA component model 3.Explain in detail about DCOM with its Architecture 4. Explain briefly about the CORBA services Services supporting enterprise distributed computing. Services supporting architecture using fine-grained objects. 5.Explain the CORBA component model. Portable object adapter CCM components CCM containers 6. Explain briefly about IDL interface. _ IDL interface _ Modules _ Data types

UNIT III-SERVICES FOR DISTRIBUTED ENTERPRISE SYSTEMS Two Marks Questions and Answers 1. Who should use JNDI? Any Java application that needs to access information about users, machines, networks, and services. User information includes security credentials, phone numbers, electronic and postal mail addresses, and application preferences. Machine information includes network addresses, machine configurations, etc. In addition, any Java application that needs to either export objects or access objects exported by other applications and services. Examples include printers, calendars, and networked file systems. 2.How does JNDI relate to LDAP? JNDI provides an excellent object-oriented abstraction of directory and naming. Developers using JNDI can produce ueries that use LDAP or other access protocols to retrieve results; however, they are not limited to LDAP nor do they have to develop their applications wired to LDAP. JNDI supports the key capabilities in LDAP v3. 3. How does JNDI relate to Netscape's Java LDAP API? Netscape's API is LDAP-specific. It is used for low-level access to LDAP directories. It exposes details about the protocol that applications typically do not need to know. JNDI is a generic directory API for Java programs. It is analogous to the java.io.File class for accessing files. There might be some administrative programs that need to manipulate a file at the protocol level (such as NFS), but typically all Java applications use the File class to access to file system. Similarly, most Java programs should use JNDI to access directories. Applications that need

to manipulate directory content at the protocol level may choose to use Netscape's API. 4.How does JNDI relate to OMG's CORBA standards for naming? A Java CORBA application can use JNDI to access to the CORBA (COS) name service, as well as other naming and directory services. It offers the application one interface for accessing all these naming and directory services. Using JNDI also paves the way for Java CORBA applications to use a distributed enterprise-level service like LDAP to store object references. 5.How does JNDI relate to Microsoft's ADSI? The Java ADSI package allows Java programs to access Active Directory based on the COM model. Although it can be used to access other directories, it is a Windowscentric solution. JNDI offers Java applications, regardless of whether they're running on Windows or accessing Active Directory, to access directories using the Java object model. For example, you can manipulate objects such as AWT and JavaBeans components, bind them into the directory, and look them back up without having to do any translation or deal with data representation issues. 6.What is the Java Message Service? The Java Message Service (JMS) API is an API for accessing enterprise messaging systems. It is part of the Java 2 Platform, Enterprise Edition (J2EE). The Java Message Service makes it easy to write business applications that asynchronously send and receive critical business data and events. The Java Message Service defines a common enterprise messaging API that is designed to be easily and efficiently supported by a wide range of enterprise messaging products. The Java Message Service supports both message ueueing and publishsubscribe styles of messaging.

7. Is the Java Message Service a product? No, the Java Message Service is the specification of a common API for enterprise messaging. A JMS provider supplied by an enterprise messaging vendor is reuired to use it. 8.What is compelling about the Java Message Service? The Java Message Service is compelling for these reasons: It is the first enterprise messaging API that has achieved wide industry support. It simplifies the development of enterprise applications by providing standard messaging concepts and conventions that apply across a wide range of enterprise messaging systems. It leverages existing, enterprise-proven messaging systems. 9.What is the relationship between the Java Message Service and the Java Naming and DirectoryInterface(JNDI)API? The JMS API, like the other Java Enterprise APIs, uses the JNDI API for administration. The JMS API defines ConnectionFactories and Destinations as administered objects that are configured and placed in a JNDI naming context. JMS clients then look up and use these preconfigured objects. This insures that JMS applications are easy to deploy and administer. 10. What is the relationship between the Java Message Service and the Java DataBase Connectivity (JDBC) API? JMS clients may also use the JDBC API. They may use both the JMS API and the JDBC API in

the same transaction. In most cases, they will achieve this automatically by implementing these clients as enterprise beans. They may also use the Java Transaction API. 11. What is the relationship between the Java Message Service, the Java Transaction API, and the Java Transaction Service? The Java Transaction API (JTA) provides a client API for delimiting distributed transactions and an API for accessing a resource's ability to participate in a distributed transaction. A JMS client may use JTA to delimit distributed transactions. A JMS provider can optionally support distributed transactions via JTA. 1. 12.How can you specify a different ORB? To use an ORB other than the Java CORBA ORB in your application, you can set the org.omg.CORBA.ORBClass property to the ORB of your choice. For example, use code as shown in the example to explicitly set the ORB to the ORB-implementation you would prefer to use: public class MyApp { public static void main( String args[] ) { Properties properties = System.getProperties(); properties.put( "org.omg.CORBA.ORBClass", "" ); try { ORB orb = ORB.init( args, properties);

... Check the vendor's documentation for information on setting properties specific to their ORB implementation. 13.Does Java IDL contain notification/event services? an Interface Repository? No, it does not. If you need one of these services, you can implement one, you can purchase one off the shelf, or you can search for one freely available to start things off with. You can plug-in 3rd party services such as these to the J2SE v.1.4.2 ORB using INS technology.

2. 14.What is the difference between Java IDL and Java RMI-IIOP? This is a fundamental uestion and it's important to understand the distinction between these two ways of integrating the Java programming language with CORBA. Java IDL is for CORBA programmers who want to program in the Java programming language based on interfaces defined in CORBA Interface Definition Language (IDL). This is "business as usual" CORBA programming, supporting the Java language in exactly the same way as other languages like C++ or COBOL. Java RMI-IIOP (Remote Method Invocation over Internet Inter-ORB Protocol) is for developers who want to use the Java programming language to program to the Java RMI interfaces, but use IIOP as the underlying transport. Java RMI-IIOP provides interoperability with other CORBA objects implemented in various languages - but only if all the remote interfaces are originally defined as Java RMI interfaces. It is of particular interest to programmers using Enterprise JavaBeans (EJB), since the remote object model for EJB's is RMI-based.

There are several scenarios that will define how you will want to create distributed CORBA applications. Here are some of them: Java IDL - If you have been developing CORBA applications using IDL for some time, you will probably want to stay in this environment. Create the interfaces using IDL, and define the client and server applications using the Java programming language to take advantage of its "Write Once, Run Anywhere portabili ty, its highly productive implementation environment, and its very robust platform. RMI-JRMP - If all of your applications are written in the Java programming language, you will probably want to use Java RMI technology to enable communication between Java objects on different virtual machines and different physical machines. Using Java RMI without its IIOP option leverages its strengths of code portability, security, and garbage collection. Java RMI-IIOP - If you are writing most of your new applications using the Java programming language, but need to maintain legacy applications written in other programming languages as well, you will probably want to use Java RMI with its IIOP compiler option.

15. Differentiate POA and BOA? In BOA generation 1. Due to the tight coupling between the servant and the object,the creation of the servant results in object activation. Hence to return on OR(object reuest) to the client ,the servant is created and maintained. 2. BOA specification does not support late binding. 3. Only one servant is activated for every every CORB A object in BOA generation of OA. In POA generation, 1. The creation of the servant and return OR are decoupled. Servant retention policy with explicit activation is used in POA for early binding. 2. POA specification support late binding through servant managers. 3. Stateless servant can be implemented by POA using a default servant to process all reuests or by using a servant locator.

16.What is IDL?

An interface description language (or alternately, interface definition language), or IDL for short, is a specification language used to describe a software component's interface. IDLs describe an interface in a language-neutral way, enabling communication between software components that do / not share a language for example, between components written in C++ and components written in Java. IDLs are commonly used in remote procedure call software. In these cases the machines at either end of the "link" may be using different operating systems and computer languages. IDLs offer a bridge between the two different systems. Software systems based on IDLs include Sun's ONC RPC, The Open Group's Distributed Computing Environment, IBM's System Object Model, the Object Management Group's CORBA(which implements OMG IDL, an IDL based on DCE/RPC), Facebook's Thrift and WSDL for Web services 17.What is rmid? The rmid tool starts the activation system daemon. The activation system daemon must be started before activatable objects can be either registered with the activation system or activated in a JVM. The daemon can be started by executing the rmid command, and specifying a security policy file, as follows: rmid -J-Djava.security.policy=rmid.policy 18.What is IMoniker? The com.ms.com.IMoniker interface can help you interact with DCOM objects such that they will persist their state over a series of calls. Monikers in DCOM can thus be used to obtain a handle to an object previously instantiated. If a client has a handle to an IMoniker interface, the client can refer to an existing server. An object that has a pointer to the moniker object's IMoniker interface can locate, activate,

and get access to the identified object without having any other specific information on where the object is actually located in a distributed system. 19.What is Unknown? In programming, the IUnknown interface is the fundamental interface in the Component Object Model (COM). The published COM specification mandates that COM objects must minimally implement this interface. Furthermore, every other COM interface must be derived from Iunknown.It mainly control life time of the methods. The IUnknown interface exposes three methods (sometimes called functions): ueryInterface, AddRef, and Release. ueryInterface is used to obtain a pointer to another interface, given a GUID that uniuely identifies that interface (commonly known as an interface ID, or IID). If the COM object does not implement that interface, an E_NOINTERFACE error is returned instead. AddRef is used by clients to indicate that a COM object is being referenced. This is necessary to ensure that a COM object is not disposed prematurely. Release is used by clients to indicate that they have finished using the COM object. An unreferenced COM object may be safely disposed.

20. What is a type library in DCOM?

A type library (.tlb) is a binary file that stores information about a COM or DCOM object's properties and methods in a form that is accessible to other applications at runtime. Using a type library, an application or browser can determine which interfaces an object supports, and invoke an object's interface methods. This can occur even if the object and client applications were written in different programming languages. The COM/DCOM run-time environment can also use a type library to provide automatic cross-apartment, cross-process, and cross-machine marshaling for interfaces described in type libraries. 21. What is server locality in DCOM? Three types of COM servers can be created based on where they sit relative to the COM clients. These server locality types are referred to as in-process, local, or remote. Depending on the type of server locality desired, you will register the server differently with the Windows Registry. In-process servers run inside of the same process as the COM client. Local servers run in different processes from the client but on the same machine. Remote servers are of the most interest to us here because they represent the distributed communications paradigm embodied by DCOM. Remote servers run on different machines across a network. 22. Define Messaging service? A messaging service is software that provides support for passing messages between distributed applications in a reliable, asynchronous, loosely coupled, language independent, platform independent, and often configurable fashion. 23. What Is Assurance? Assurance is literally an integral part of the architecture and development of an enterprise solution. Practically speaking, it is difficult to effectively separate the provision of assurance from the development of your enterprise systems. A very practical and comprehensive knowledge of how to build an enterprise system is needed to provide practical assurance solutions. 24.How can you Provide high Assurance in enterprise?

Provide the assurance for your enterprise solutions means providing a secure, reliable, available, maintainable, and perhaps safe solution. 25.Which techniques can be used for identifying assurance issues? Following are assurance problems needing identification by the technical staff: Security Problems: Security holes, weaknesses, and potential threats Reliability Problems: Potential failure modes, potential bottlenecks, and codeusage assumptions Availability Problems: Potential single points of failure, denial of service possibilities, scalability concerns, and code usage assumptions Maintainability Problems: Difficult-to-maintain designs, code dependencies, code modules lacking encapsulation, software configuration, processing distribution, and extensibility to future demands Safety Problems: Hazardous scenarios, safety-critical code modules, and failsafe components

UNIT IV ENTERPRISE WEB ENABLING

PART-A 1. What are the types of directives in JSP? 2. Describe the java script global functions in detail. 3. Define JSP. 4. What is meant by Plug-in? 5. Define a servlet. 6. What do you understand by JSP attributes? 7. Why do we require super.init(config) in servlets? 8. How can we know whether we need jsp or servlet in a project? 9. Define the servlet interface. 10. Points of difference between GenericServlet and HttpServlet. 11. How to find out whether the session will be alive or not. 12. Explain the significance of deployment descriptor in servlet. 13. What changes are observed after increasing the buffer size using attribute buffer? 14. Explain the points of difference between ServletConfig and ServletContext. 15. Which two objects are accepted when a servlet receives a call from a client? 16. Explain the difference between GET and POST service methods. 17. When is it necessary to use the ServletContext? 18. What is the order in which the following methods are called? service(),do get() and dopost() 19. Why no constructor is provided in servlet? 20. Can a constructor be written in servlet? 21. What is the function of Servletconfig and ServletContext? 22. What do you mean by action=get? 23. Define the Singleton class. How is it written? 24. Explain the difference between sendRedirect () and forward ()? 25. Which is faster sendRedirect () or forward ()? 26. What information is provided by the ServletResponse Interface to the servlet methods? 27. How can a JSP error page be invoked by a servlet? 28. What is the way to override an init method in servlets? 29. What is the number of ServletConfig and Servlet context objects in a single application? 30. Explain the need of Servlets. 31. Is it possible to abort the processing of JSP? 32. Can we servlet be used to create both dynamic and static WebPages? 33. Explain the difference between JSP and servlets. 34. What are the merits of servlets over CGI? 35. How can the servlets in two difference applications communicate with each

other? 36. How does a server find out when to invoke the init or destroy methods of servlet? 37. Explain the difference between servlets and applets. 38. What is the method of passing an argument from one servlet to another? 39. How do we add jsp to the servlet? 40. How are client requests handled by the Http servlet?

41. Explain the difference between multi thread and single thread model servlet. 42. How is communication made between servlet and applet? 43. What are the parameters of servlet context? 44. What do you understand by the servlet life cycle? 45. What are the different kinds of servlets? 46. How can we receive one servlets context information at another servlet? 47. What lines of code are necessary before the use of PrintWriter? 48. How does the Java Server Pages technology work? 49. What is a JSP page? 50. How do JSP pages work? 51. Does JSP technology require the use of other Java platform APIs? 52. How is a JSP page invoked and compiled? 53. What you will handle the runtime exception in your jsp page? 54. What is a JSP and what is it used for? 55. What is the difference between custom JSP tags and beans? 56. What are the two kinds of comments in JSP and whats the difference between them. 57. What are the implicit objects?

58. How many JSP Scripting elements and what are they? 59. How many messaging models do JMS provide for and what are they? 60. What Class.forName will do while loading drivers? 61. How can I enable session tracking for JSP pages if the browser has disabled cookies? 62. What are the two major protocols for accessing email from servers? 63. What is XSL and why it is used 64. What is the use of web services? 65. What are the advantages of web services? 66. List out some web service technologies? 67. What is XML? 68. Explain about the DTD features? 69. Describe the role that XSL can play when dynamically generating HTML pages from a relational database? 70. Explain about DOM interface? 71. What three essential components of security does the XML Signatures provide? 72. Can you walk us through the steps necessary to parse XML documents? 73. Can I use the same prefix for more than one XML namespace? 74. State some features of XQuery? 75. How can u create an XML file? 76. Give some examples of XML DTDs or schemas that you have worked with. 77. Is XML case-sensitive? 78. Explain about XML signature? 79. What is an XML namespace name? 80. Explain about XML namespaces? 81. What is XQuery? 82. What's XLink? 83. Explain about XQuery? 84. What is XML-RPC? 85. Can I use XML namespaces in DTDs?

86. Differences Between XML and xlink? 87. Differences between XML and HTML? 88. What r XML files and how do you read data from XML files and what stage to be used? 89. What is WSDL? 90. What are Web Services? 91. What are the uses of web services? 92. Explain DTD for XML schemas 93. Write a note on proxy server.

PART-B 1. What does JSP scripting component include? Explain with a program. 2. Describe the servlet architecture and the various interfaces invoked by the servlet container 3. Describe JSP standard actions. How does a standard action provide JSP implementers with access to several of the most common tasks performed in JSP? 4. Use a one dimensional array and write a script to solve the following problem. Read in 20 numbers, each of which is between 10 and 100. As each number is read, print it only if it is not a duplicate of a number that has already been read. 5. Write a script that inputs a telephone number as a string in the form (555)555555. The script should use strings method split to extract the area code as token and the last four digits of the phone numbers as a token. Display the area code in one test field and the seven digit phone number in another text field. 6. Write a servlet program that handles HTTP get request containing data that is supplied by the user as a part of the request. 7. Explain the difference between get request and post request type. 8. Write a servlet program for inter servlet (Servlet to Servlet) Communication. 9. Write a servlet program to retrieve data from the database (Use your own data base) 10. a) Write a java script program to randomly display the image from a image pool. b) Design your own personal webpage using forms and get the values, use all the form elements and validate the same using script. 11. Explain in detail about distributed object model 12. Describe the system architecture of a multi-tier application. 13. How document manipulation is done with XML document object module and

explain in detail the various methods of DOM. 14. Explain the concept of web services. 15. Explain xml schema with an example 16. How to build the web applications? Explain the steps? 17. Develop the web page for student management system using WEB SERVICES 18. Develop the web page for library management system using WEB SERVICES 19. Develop the web page for railway reservation system using WEB SERVICES 20. Explain Web Services ARCHITECTURE 21. What is meant by CGI? Explain in detail about CGI environment variables. 22. How do you integrate CGI with HTML pages? Explain with an example. 23. Explain with neat diagram of Jini component architecture

V UNIT -EJB 1. What is EJB architecture(components)? 2. What is the difference between ejbCreate() and ejbPostCreate? 3. Can I invoke Runtime.gc() in an EJB? 4. Why an onMessage call in Message-driven bean is always a seperate transaction? 5. How do you check whether the session is active in Stateful session bean ? 6. What is the difference between EJB and RMI 7. What is the difference between ejbStore() and ejbLoad()? 8. What is meant by Serialization and Externalization? Serialization is a Marker interface,so what is the use of WriteObject() anf ReadObject(), Where it is actually used? Give me some real time examples? 9. Which are features in EJB 2.0 ? and which are features in EJB 3.0? 10. The EJB container implements the EJBHome and EJBObject classes. For every request from a unique client, does the container create a separate instance of the generated EJBHome and EJBObject classes? 11. What is ejbdoc? difference between connector,server,container? 12. What is the difference between ejbCreate() and ejbPostCreate()? 13. What is Instance pooling? 14. What is the difference between normal Java object and EJB? 15. How will you propagate exception thrown inside session bean to JSP or

Servlet client? 16. What is the difference between JNDI context, Initial context, session context and ejb context? 17. Is it legal to have static initializer blocks in EJB? 18. What is the difference between the NRU and LRU cache? 19. What is the difference between EAR, JAR and WAR file

Вам также может понравиться