Thursday, 27 September 2012

IBM Websphere Interview Questions Part 3 [HOT RECUTER]

Q.What is the difference between Web Server and Application Server ? 
A.
1.Webserver:A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.

2.Application Server:As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object

Q.What is JDBC ?
A.JDBC technology is an API (included in both J2SE and J2EE releases) that provides cross-DBMS connectivity to a wide range of SQL databases and access to other tabular data sources, such as spreadsheets or flat files. With a JDBC technology-enabled driver, you can connect all corporate data even in a heterogeneous environment

Q.What is EJB ?
A.Enterprise JavaBeans (EJB) technology is the server-side component architecture for the Java 2 Platform, Enterprise Edition (J2EE) platform. EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology. 

Q.What are the different application servers and Web Servers supporting J2EE technology's ?
A.
1.JBoss Is an Application Server that supports J2EE
2.IBM Websphere and BEA WebLogic servers are a combination of Application Server, Web Server & container
3.Jakarta Tomcat is a Servlet container and a Web server.
4.Apache Sever is a Web server

Q.What is the WebSphere Application Server Console and what is it's role? What is the default URL and port for accessing it?
A.The administrative console is a browser-based interface that allows you to configure application server settings, deploy and manage applications, and perform additional tasks that are not included in the HTTP Server Administration interface. It used to be a Java application, however to be firewall safe it was made into a web-based application.It runs on the default install port 9060 e.g http:\\hostname:9060\ibm\console, however this can be changed by editing virtual_hosts names. also when during installation ie GUI or response-file install you can set the ports that will be used.

Q.What Development Environment(s) are available to develop applications for WebSphere?
A.IBM provides several industrial strength development environments based on Eclipse development framework the current IDE is Rational Developer for Websphere.Applications can also be developed with the Websphere Application Server Toolkit and third party tools like Jbuilder, and Eclipse/ANT etc.

Q.In WebSphere how would you provide the ability for an Web application (JSP) to be able to provide authentication for both a local user and LDAP.
A.Using the Administration Console:
1.Turn on Administrative security. 
2.Federate a local repository and an LDAP repository together. 
3.Restart server. 
4.Ensure Web application has a web.xml file to be able assign LDAP groups to roles.

Q.What version of Websphere software is required to install WebSphere clustering? How would you configure Websphere for clustering: list basic steps? 
A.WebSphere Application Server Network Deployment is the software required to install a WebSphere cluster.
1.Install base with Deployment Manager 
2.Create profiles for Deployment Manager and each node in the cell using with the Profile Management Tool ensuring the nodes are federated. 
3.Use the Deployment Manager's Administration Console to create the cluster and set cluster settings as appropriate. 
4.Create Windows Services or Start up scripts for Deployment Manager, Node manager and Severs to ensure restart when OS is rebooted.

Q.How would you ensure that a Websphere Application server or Websphere Application Server Node is started when the OS being windows 2000/2003 is re-booted?
A.Use the command WASService to register the Websphere Application Server or Websphere Application node as a Windows service.

Q.How to choose websphere over other application servers?
A.Selecting application server is part of architechtural process when infrastructure is defined. It depends on several facots:
1.External systems your application will be interacting
2.Type of application you have
3.Target availability of system.
4.Corporate standards
5.Budget.

Q.What are deployment descriptors? How many types of Deployment descriptors are available? What are they?
A.Deployment descriptor is an XML file that describes how to deploy a module or application by specifying configuration and container options. For example, an EJB deployment descriptor passes information to an EJB container about how to manage and control an enterprise bean. There are two types of deployment descriptor in websphere: Web application deployment descriptor and portlet deployemnt descriptor.Portlets are packaged as WAR files with a web application deployment descriptor (web.xml). This defines each portlet as a servlet within the web application,including unique identifiers for each portlet, the portlet class, and initialization parameters.

Q.How many ways can you deploy applications in websphere?
A.
1.Directly copy files to deployedapplication folder in websphere- hot deployment.
2.use websphere specific ant tasks and building automated scripts for deploying application.
3.through administration console.

Q.What language is the default scripting language for Websphere and which language is the preferred scripting language? What Websphere tool can be used to run scripts and where is it located?

A.1.JACL is the default scripting language for WAS, Both JACL and Jython can be used.
2.Jython is the preferred scripting language as JACL is now deprecated.
3.WSAdmin tool located in the \bin directory

Q.What type of files are required to deploy an application into Websphere. How can they be installed?
A.WAR or EAR files can be installed using Administration Console or scripts.

Q.How would use ensure WebSphere server logs are created on a different drive than the installation root?
A.Change the WebSphere server's server variables using the Administrative Console or use scripts.

Q.How to import jaxp package in IBM WSAD?
A.
1.open WSAD
2.go to project
3.click properties
4.select javaBuildPath
5.add any jar file like jaxp select add external jars.

Q.How to implement JDBC-ODBC bridge driver (Type 1) in Websphere?
A.If you use JDBC type (I) driver you dont need to add any driver in websphere. you simply created DSN and use it locally, same we use java class, if you use Type(2) and Type(4) so first go to admin console then go to connection, then add driver there fill other info like conn. size, uname pass, max conn. and connect it to you applications.

Q.Is there any difference between weblogic and websphere?
A.Webpshere tends to focus more on integration, connectivity and web services. it has rich implementation of J2EE, better performance, more extensive integration and transaction management. In terms of trnsaction weblogic is having default transaction attribute as ’supports’, but websphere does not have any default transaction attribute.

Q.State some of the features present in web sphere.
A.The following are the features of WebSphere:
1.Suports the Servlet/JSP container functionality which runs on top of HTTP.
2.Supports HTTP servers such as IBM HTTP server, MS IIS and Netscape iPlanet server.
3.Supports HTML pages, Setvlets, Java Server Pages and XML.
4.Supports EJB component model, Workload Management. WLM supports multiple servers within a single administrative domain.

Q.What is IBM Web Sphere edge server?
A.WebSphere Edge Server allows deploying parts of an application that contains servlets or JSP components to a proxy cache and executes at the cache. The cache, called edge server, in this context works with the original WebSphere Application Server. This feature is called offloading

Q.What is extended deployment in Web Sphere?
A.WebSphere Extended Deployment is a new product for IBM WebSphere software. WED extends the WebSphere software platform. The new features / notions include dynamic operations, high performance computing and extended management.

Q.What is asymmetric clustering in Web Sphere?
A.In asymmetric clustering, the partitions can be declared dynamically and usually run on a single cluster at a time. The task which is specific to an appropriate cluster can be routed to that cluster. The Asymmetric Clustering applications are used in electronic trading systems which are utilized by banks.

Q.What is Web sphere MQ JMS Provider?
A.The usage of WebSphere MQ is employed to use as Java Message Service provider for JEE applications which are deployed in WebSphere Application Server.
The WebSphere MQ JMS is message service provider for WebSphere MQ systems. It is a set of Java classes. These classes allow the usage of JMS applications to access WebSphere MQ systems. The models point-to-point and publish/subscribe of JMS are supported by MQ JMS provider.

Q.Explain the attribute CHANNEL in web sphere MQ.
A.A channel is a connection that is to establish a link between sending channel and receiving channel. A channel has a sender channel at the local queue manager and receiver channel at the remote queue manager. These two channels consist of same name, and together make one channel.The CHANNEL attribute is used with WebSphere MQ applications to specify the channels for receiving and sending messages in a file that defines sender and receiver channels.

Q.Explain about web sphere MQ Real time transport.
A.It is a lightweight protocol. This protocol is optimized for use with messages that are non-persistent. WebSphere MQ Real Time Transport is utilized only by JMS clients. WebSphere MQ Real Time Transport is right suitable for the applications to send large number of messages. All the applications that use this protocol must rely on TCP/IP for quality considerations and which do not require persistent delivery. For example, this protocol can be used in situations where the data is updated very frequently, such as stock market share values, updating scoreboard of a sporting event.

Monday, 17 September 2012

IBM WebSphere Application Server Interview Questions


    1. What is the difference between Web Server and Application Server ? 

    Webserver:

    A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.

    Application Server:

    As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object

    2. What is JDBC ?

    JDBC technology is an API (included in both J2SE and J2EE releases) that provides cross-DBMS connectivity to a wide range of SQL databases and access to other tabular data sources, such as spreadsheets or flat files. With a JDBC technology-enabled driver, you can connect all corporate data even in a heterogeneous environment

    3. What is EJB ?

    Enterprise JavaBeans (EJB) technology is the server-side component architecture for the Java 2 Platform, Enterprise Edition (J2EE) platform. EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology. 

    4. What are the different application servers and Web Servers supporting J2EE technology's ?

    JBoss Is an Application Server that supports J2EE

    IBM Websphere and BEA WebLogic servers are a combination of Application Server, Web Server & container

    Jakarta Tomcat is a Servlet container and a Web server.

    Apache Sever is a Web server

    5. What is the WebSphere Application Server Console and what is it's role? What is the default URL and port for accessing it?

    The administrative console is a browser-based interface that allows you to configure application server settings, deploy and manage applications, and perform additional tasks that are not included in the HTTP Server Administration interface. It used to be a Java application, however to be firewall safe it was made into a web-based application.

    It runs on the default install port 9060 e.g http:\\hostname:9060\ibm\console, however this can be changed by editing virtual_hosts names. also when during installation ie GUI or response-file install you can set the ports that will be used.

    6. What Development Environment(s) are available to develop applications for WebSphere?

    IBM provides several industrial strength development environments based on Eclipse development framework the current IDE is Rational Developer for Websphere. Applications can also be developed with the Websphere Application Server Toolkit and third party tools like Jbuilder, and Eclipse/ANT etc.

    7. In WebSphere how would you provide the ability for an Web application (JSP) to be able to provide authentication for both a local user and LDAP.

    Using the Administration Console:
    • Turn on Administrative security.
    • Federate a local repository and an LDAP repository together.
    • Restart server.
    • Ensure Web application has a web.xml file to be able assign LDAP groups to roles.

    8. What version of Websphere software is required to install WebSphere clustering? How would you configure Websphere for clustering: list basic steps? 

    WebSphere Application Server Network Deployment is the software required to install a WebSphere cluster.
    • Install base with Deployment Manager
    • Create profiles for Deployment Manager and each node in the cell using with the Profile Management Tool ensuring the nodes are federated.
    • Use the Deployment Manager's Administration Console to create the cluster and set cluster settings as appropriate.
    • Create Windows Services or Start up scripts for Deployment Manager, Node manager and Severs to ensure restart when OS is rebooted.

    9. How would you ensure that a Websphere Application server or Websphere Application Server Node is started when the OS being windows 2000/2003 is re-booted?

    Use the command WASService to register the Websphere Application Server or Websphere Application node as a Windows service.

    10. What language is the default scripting language for Websphere and which language is the preferred scripting language? What Websphere tool can be used to run scripts and where is it located?

    JACL is the default scripting language for WAS, Both JACL and Jython can be used.

    Jython is the preferred scripting language as JACL is now deprecated.

    WSAdmin tool located in the <installroot>\bin directory

    11. What type of files are required to deploy an application into Websphere. How can they be installed?

    WAR or EAR files.

    Can be installed using Administration Console or scripts.

    12. How would use ensure WebSphere server logs are created on a different drive than the installation root?

    Change the WebSphere server's server variables using the Administrative Console or use scripts.

WebSphere Application Server Basics (Questions and Answers)


1. What is master repository?
Ans: deployment manager contains the MASTER configuration and application files. All updates to the configuration files should go through the deployment manager.
2. Tell me IHS executable files, means bin directory files?
Ans: Apache, ApacheMonitor, htpasswd, htdigest, htdbm, ldapstash, httpd.exe
3. Why given the httpd.conf file to installation of plug-in?
Ans: identify the web server (port, virtual hosts) to configure the web server definition
4. How to configure remote system httpd.conf file?
Ans: select web server machine (remote)
5. Several types of log files in the appserver?
Ans: system out, system err, trace, native out , native err, activity.
6. websphere packages?
Ans: express, base, network deployment
7. What is the profile?
Ans: profiles are a set of files that represent a websphere application server configuration.
8. What is the trace?
Ans: A trace is an informational record that is intended for service engineers or developers to use. As such, a trace record might be considerably more complex, verbose and detailed than a message entry.
9. What is heap memory?
Ans: Objects storage space for objects references created at run time in a jvm is heap memory.
10. Out of memory exception is there, how to handle that exception?
Ans: To incrise heap memory size
11. What about IHS?
Ans: IHS (IBM HTTP Server) is one of the web servers. It serves the static content only and it takes up only http requests.
12. What about plug-in?
Ans: plug-in is one of the modules it is interface between application server and web server, the plug-in process receives the request from the client first. If the request is for dynamic content, the plug-in diverts the request to the websphere application server. If the request is for static content, the plug-in forwards it to the Http server.
13. What is the global security?
Ans: it provides the authentication and authorization for websphere application server domain (administration client or console).
14. How to configure the global security?
Ans: open console and then select security option in the right side menu, and then select localOs registry in the user registry, then enter the username, passwords. And again select global security then ltpa option then provide the password, then save the configuration. And restart the deployment server and then relogin the console.
15. What is SSL?
Ans: ssl is a protocol for providing encrypted data communications between two processes.
16. What is PMI? How to configure PMI?
Ans: monitoring and tuning–>PMI–>select any process (server1, nodeagent, dmgr) and then enable PMI–>then apply and then save. Select performance viewer–>current activity and then select enabled process and click the start monitoring button after that process select.
17. What is the UNIX command of all display server processes?
Ans: ps –ef| grep java
18. What is node?
Ans: logical group of servers.
19. How to start the server?
Ans: startserver.sh server1
20. How you get nodeagent……what you have to install to get nodeagent?
Ans: Custom Profile
21. How to add the node?
Ans: addnode.sh 8879
22. What is the application server?
Ans: The application server provides a runtime environment in which to deploy, manage, and run j2ee applications.
23. What is the node?
Ans: A node corresponds to a physical computer system with a distinct IP host address.The node name is usually the same as the host name for the computer.
24. What is the node?
Ans: A node corresponds to a physical computer system with a distinct IP host address. The node name is usually the same as the host name for the computer.
25. How many types of profiles are in nd product?
Ans: 1.deployment manager profiles 2.application server profiles 3.custom profile
26. What is diffrence b/w dmgr and other profiles?
Ans: dmgr app custom
1.its used for administration 1.admin console is there 1.plain node purpose of remaining profiles 2.initially one app server there 2.empty node 2.it supports the distributed 3.work independently environment. 4. Put applications 3.it is not included app server 4.admin console is there 5.work independently 6.do not put applications
27. Diff b/w 5.0 and 6.0?
Ans: Web Sphere Studio 3.5, comes up with Visual Age for Java. WSAD 5.0 supports J2EE 1.3 java specifications. RAD 6.0 supports J2EE 1.4 and integrated with Eclipse 3.0, UML Visual Editor, Tomcat Jakarta, Ant scripting, EJB universal test client and SOA tools.
28. What is the difference between web server and application server?
Ans: Application Server: takes care of Security, Transaction, Multithreading, Resource pooling, load balancing, clustering, performance, highly availability, scalability, etc. Exposes business logic to client applications through various protocols, possibly including HTTP. Supports deployment of .war and .ear files Application server = web server + EJB container.
29. Diff b/w weblogic and websphere?
Ans: Both BEA Weblogic and IBM’s WebSphere provide J2EE based application servers which are competitors. WebSphere leverages more on connectivity issues with MQ and legacy systems with strong dominance in J2EE.
30. Some problem is there in web server, so this information which log file contain?
Ans: http.log, plugin.log
31. What is jdbc?
Ans: jdbc is a low level pure java api used to execute sql statements.
32. What is datasource?
Ans: A data source is associated with a jdbc provider that supplies the specific jdbc driver implementation class
33. What is diff b/w type4 and type2?
Ans: type4 type2
1. It is pure java oriented 1.it is not a pure java oriented driver 2.require client side software 2.no need any client software
34. Some application not accessing, so what is the problem? This information which log file contains?
Ans: systemout, systemerr
35. In type3 client software which machine you have install?
Ans: server side machine
36. two databases there (oracle and db2),so I want 3 datasources for oracle and 2 data sources for db2 so create 3 datasource names for oracle and 2datasourcename for db2 is possible or not?
Ans: possible
37. What is jndi?
Ans: we can register resources in the application server’s java naming and directory interface (jndi) namespace. Client applications can then obtain the references to these resource objects in their programs.
38. Why use the boostrap port number?
Ans: client applications use the bootstrap port to access websphere’s built-in object request broker (orb) to use enterprise java beans in applications installed on the application server. The java naming and directory interface service provider url used by the client application needs to reference the bootstrap port to obtain an initial context for looking up ejb’s it wants to use. (For communicate two servers)
39. What are the appserver components?
Ans: admin server, web container, ejb container,j2c service, naming server, messaging engine, security server.
40. LDAP port number?
Ans: 389 or 636
41. How to start the server?
Ans: startserver.sh server1
42. Packages of websphere?
Ans: express, base, network deployment
43. What is webcontainer?
Ans: The web container provides a runtime environment for servlets, jsp’s, javabeans, and static content.
44. How to find out free diskspace from command prompt?
Ans: du -sk (kb) du -sm (mb)
45. How to find out certain server configuration details like port no, server name, node name, pid?
Ans: through admin console.
46. Configure the plug-in through admin console is possible or not?
Ans: possible
47. Where to set the path?
Ans: environments–>websphere variables
48. How many types of installations?
59. Application installed but not working. What are troubleshooting steps?
Ans: see jvm & application are up, check plugin-cfg.xml file for the root context used by the web application if it does not exist generate plugin and restart web server.
50. Applications installed fine, also generated plugin, but application still not working, in this case which log to see?
Ans: plugin.log
51. Default admin port?
Ans: 9060, ssl 9043
52. Default bootstrap port?
Ans: 2809
53. How to hit application without hitting the web server?
Ans: webcontainer port on application server
54. In how many ways you can perform administration?
Ans: console,,,JMX
55. No of ways of doing deployments?
Ans: Admin console…..jython (jacl) scripts
56. What is CellDiscoveryAddress
Ans: Node uses this port to talk to DMGR
57. What is NodeDiscoveryAddress
Ans: DMGR uses this port to talk to node
58. How websphere discovers a change in JSP and compiles it?
Ans: There is an algorithm that websphere uses to find the timestamp of .jsp and .class files. It checks that timestamp of .class file is always later than its corresponding .jsp file.
59. What is classloader?
60. how do you specify a jar file to be used by the application, consider that you have many jar files in your system?
Ans: classloader
61. What is a managed node?
Ans: Node with NodeAgent
62. What is a managed webserver?
Ans: Remote webserver access through local (dmgr/cell)