Sie sind auf Seite 1von 12

What is a portal ?

A portal can be best described as a web site that acts as a "point of entry" or a gate to a larger system. While it seems pretty difficult to define a portal in the strictest sense, these are some of the common features of portals: Content aggregation: Portals tend to aggregate content from multiple, disparate sources and provide one unified view of the same. Personalization: This refers to the ability of the portal to tailor the content/services that it offers according to the user of the portal. Search: Most if not all portals, offer some form of searching of it's content and sometimes even content from external sources. Single Sign On: Allows users to authenticate once to the portal and thereby allows access to many other systems without the need for re authentication.

What is a JSR 168 Portlet ?


Prior to JSR 168, almost all portal platforms offered their own proprietary approach to create pluggable portal components. For example, IBM had IBM portlets, Sun(iPlanet) had Providers, SAP had iViews and Plumtree had Gadgets. JSR 168 aims to standardize these pluggable portal components so that they are independent of the actual portal server that they are written to. What this means is that one can migrate portlets seamlessly from one portal server to another without any code change.

What are the types of request in JSR 168 portlets?


Their are two types of request :1) RenderRequest 2) ActionRequest

What are the differences between portlets and servlets?


Essentially, Servlets provide content that normally takes up the whole page in a browser (unless you're using frames), and portlets provide content that is wrapped by a window. With portlets, you can have multiple portlets side by side with one another and each one can provide content and functionality that is different from the other. A portlet can provide the complete interaction for one type of application, while another portlet can provide content for another type of application. The portal can provide some house

keeping functionality and secured single point of entry to all of the portlets on a page. As for the particulars (similarities/differences) between them, please continue reading. Here are some similarities: Servlets and portlets are web based components that utilize Java for their implementation Portlets are managed by a portlet container similar to a servlet container Both of these components generate content, which can be static or dynamic Both portlets and servlets have a lifecycle that is controlled by the container The client/server model is used for both servlets and portlets The packaging and deployment are essentially the same The manner in which the classes are loaded and the class loaders that perform the work are also the same Lifecycle management is similar The Request and Response semantics are also similar

Here are some differences: Servlets can provide complete web pages, whereas portlets only provide fragments. These fragments are then aggregated to form a complete web page by the portal Portlets aren?t allowed to generated HTML code that contains tags such as base, body, frame, frameset, head, html, or title. The iframe tag can be used with caution. The user cannot access a portlet directly using a URL in the way that a servlet is accessed. Instead, the URL points to the page containing all of the portlets on one page Communication between the web client and the portlets is performed through the portal Portlets can be provided with buttons or controls to manipulate the portlets? window states or portlet modes Multiple instances of a single portlet can be placed onto the same page Portlets support persistent configuration and customization Portlets also support user profile information Portlets support two scopes within the session; application scope and portlet scope

There are several things that servlets are allowed to do, but portlets aren?t. These include the following: Portlet aren?t allowed to set the character set encoding of the response Portlet also aren?t allowed to set the HTTP headers on the response Portlet cannot manipulate the URL of the client request to the portal

What is a portlet container ?


A portlet container runs portlets and provides them with the required runtime environment. A portlet container contains portlets and manages their lifecycle. It also provides persistent storage for portlet

preferences. A portlet container receives requests from the portal to execute requests on the portlets hosted by it.A portlet container is not responsible for aggregating the content produced by the portlets. It is the responsibility of the portal to handle the aggregation.

Can I get the HttpServletRequest from a Portlet?


The PortletRequest object is supposed to give you everything you need i.e. parameters, attributes, dispatching, etc. As per the spec, you should not need the HttpServletRequest. However, some portlet container implementations do provide some kind of hack to get hold of HttpServletRequest e.g. in Pluto you can cast theRenderRequest to HttpServletRequest. But, be aware that this behavior cannot be relied upon.

What's difference between PortletConfig.getInitParameter() and PortletContext.getInitParameter( )?


Context-wide init-params share the same context space as Servlets and JSPs belonging to the same application and they are defined in the web.xml file. You can get them using PortletContext.getInitParameter() method. Portlet-wide initialization parameters on the other hand belong in the portlet.xml file and you can get them usingPortletConfig.getInitParameter() method.

What is a PortalSession Interface ?


User identification across many requests and transient information storage about the user is processed by PortletSession interace. One PortletSession is created per portlet application per client. The PortletSession interface provides a way to identify a user across more than one request and to store transient information about that user. The storing of information is defined in two scopes- APPLICATION_SCOPE and PORTLET_SCOPE. APPLICATION_SCOPE: All the objects in the session are available to all portlets,servlets, JSPs of the same portlet application, by using APPLICATION_SCOPE. PORTLET_SCOPE: All the objects in the session are available to the portlet during the requests for the same portlet window. The attributes persisted in the PORTLET_SCOPE are not protected from other web components.

What is a PortletContext Interface ?

The portlet view of the portlet container is defined by PortletContext. It allows the availability of resources to the portlet. Using this context, the portlet log can be accessed and URL references to resources can be obtained. There is always only one context per portlet application per JVM.

Is there any difference betweeb websphere and weblogic ?

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.

How to implement JDBC-ODBC bridge driver (Type 1 ) in Websphere?


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.

What is the difference between application server and web server?


ApplicationServer: takes care of Security, Transaction, Multithreading, Resource pooling, load balancing, clustering, performence, highly availability, scalability, etc. Exposes business logic to client applications through various protocols, possibly including HTTP. Supports deployment of .war and .ear filesApplication server = webserver + EJB container. Webserver: handles HTTP protocol. Receives HTTP request, it responds with an HTTP response.

Explain relationship betweeb the Servlet Container and Portlet Container?


The portlet container is an extension of the servlet container. As such, a portlet container can be built on top of an existing servlet container or it may implement all the functionality of a servlet container. Regardless of how a portlet container is implemented, its runtime environment is assumed to support Servlet Specification 2.3

Explain portlet lifecycle?

A portlet is managed through a well defined life cycle that defines how it is loaded, instantiated and initialized, how it handles requests from clients, and how it is taken out of service. This life cycle of a portlet is expressed through the init, processAction, render and destroy methods of the Portlet interface.

What is a Portlet? Explain its capabilities. Latest answer: ortlets are UI components that are pluggable and are managed, displayed in a web portal. Markup code fragments are produced by the portlets which are aggregated into a portal page...............
Read answer

Explain Portal architecture. Latest answer: The core implementation of the portal is UI, hosted by a Portal server. The HTTP requests, HTML responses, and returning appropriate portal pages are handled by the Portal UI. Enterprise Web application also can be handled by the Portal Server...............
Read answer

What is PortletSession interface? Latest answer: User identification across many requests and transient information storage about the user is processed by PortletSession interace. One PortletSession is created per portlet application per client...............
Read answer

What is PortletContext interface? Latest answer: The portlet view of the portlet container is defined by PortletContext. It allows the availability of resources to the portlet. Using this context, the portlet log can be accessed..............
Read answer

Why portals? Latest answer: The following are the reasons to use portals: Unified way of presenting information from diverse sources...............
Read answer

Explain the types of portals, Function-based portals and User-based portals Latest answer: Horizontal Portals: These are the portals are of type general interest. Yahoo!,Lycos,AOL,Freeserve,Sympatico are examples of horizontal portals...............
Read answer

JBoss portal server features Latest answer: Highly integrated web applications costs reduce by portals. JBoss enables the reusability of branding and deploying new applications of composite nature...............
Read answer

Explain the concepts and capabilities of Portal Structure Markup Language, PSML Latest answer: PSML was created to allow abstraction and content structure within Jetspeed. It has two markups:..............
Read answer

Also read Rich user interfaces and AJAX Rich user interfaces can be achieved by using a combination of dynamic HTML elements such as HTML and JavaScript. However, the scope of such an interface is limited to client-side behavior and has minimal functional implications due to the lack of server-side interactions. AJAX in JBoss portal AJAX has gained tremendous popularity in the traditional web application development world due to the richness and agility that it brings to user interfaces. Portals, such as JBoss portal, can also gain signifi cantly from AJAX, in terms of implementation of both behavior and functionality. JSR-168 AJAX limitations Before we look at the features and options provided by the new specifi cation, let's look at how traditional JSR-168 portlets functioned. As shown in the following fi gure, the "Action" request invoked the processAction method on the server, which implemented controller logic to route it to the correct view. JSR-286 and AJAX Among the set of features that the new portlet specifi cation JSR-286 introduces to make things easier for AJAX implementations, are the options to directly communicate with the portlet through shared render parameters and resource serving. Developing an AJAX portlet Implement AJAX functionality in one of the portlets, using asynchronous server calls and dynamic HTML. AJAX support for markup JBoss portal supports markup through tags on layouts and renderers of the pages. Special tags are added to layout JSPs that facilitate the placement of AJAX features on a page. Similarly, renderers are used to interpret the tags and to render AJAX-driven content. The obvious advantage is the in-built support for the auto-creation and control of AJAX components on portal pages. AJAX support for content Whereas the layout and renderer contribute to AJAX behavior at the markup level, JBoss portal's support for objectlevel confi guration can be leveraged to provide AJAX support at the page level. The object property inherits a confi gured behavior from its parent. Currently, two features are offered for AJAX-driven content Considerations for AJAX implementations Although AJAX is an exciting technology and provides signifi cant advantages in terms of performance, usability, and implementation, there are certain scenarios where using AJAX is not a good fi t. This is especially true when a lot of custom development is involved in using AJAX libraries. 1. What is a Portlet?

Portlets are pluggable user interface software components that are managed and displayed in a web portal. It is used to produce Markup code fragments. E-mail, weather reports, discussion forums, and news are some of the examples of portlet applications. 2. Explain Portal architecture. A Portal architecture is a multi-disciplinary field which includes mathematics, geometry, science, art, technology, social sciences, politics, history and philosophy. The portal architecture consists of an automated server, image server, search server, collaboration server, content server, authentication server and a remote server. An automated server is responsible for managing a job schedules and implementing a portal. An image server hosts images and other web page content used by web services and a portal. A search server is responsible for searching all the information, applications, communities, documents and web sites through portal. A collaboration server publishes the web contents and manages the portals and web applications. A content server is responsible for publishing and managing web contents. The authentication of a portal is handled by the authentication server. 3. Tell me about your technical skills? I have good knowledge of J2EE, SOA (service oriented architecture), Websphere and UML. 4. Tell me about your educational background? Just give a short detail of your academic background. I have done B.S in Computer Science from one of the renowned University. 5. Why did you apply for this position? One has to tell reasons as to why he fits into this position. Think of all the positive traits in your personality that makes you suitable for the job. You have to tell how your studies, skills, experience and personal qualities will contribute to the work of the organization. 6. What do you think it takes to be successful in an organization like this? I think willpower, leadership qualities, eagerness to work, excellent communication skills, and team spirit are key attributes required for this kind of job. I carry all those attributes that will make me successful in my job. These are some of the frequently asked interview questions. I hope now you will not face any problem in answering the above questions.

1. Difference between a website and a portal? Website is collection web pages, typically it contains information about particular company. A portal is a powerful web site that gives users a single point of access (or gateway) to applications and information in a unified interface. For eg, Yahoo.com(home page) is great example of a portal.

2. What are the features of portal? Portal has got many features. To name a few: Personalization, Authentication(single sign-on) and content aggregation. 3. What are components of weblogic portal? Look and feel components, header & footer(Shell), Menus, layouts, books & pages, portlets. 4. What is the difference between streaming portal and file-based portal? Portals come in two flavors: file-based and streaming. A file-based portal(.portal) also called a light portal obtains all of its resources from the users file system. Streaming portals, on the other hand, derive their resources from one or more databases. 5. What is backing file? Backing file is java class used to pre-processing before portal object is rendered. The following portal controls support backing files: * Desktops * Books * Pages * Portlets * JspContent controls. 6. How to create streaming portal/desktop? Streaming desktop can be created using portal admin tool. 7. What are the components of look-and-feel? Look & feel determines the appearance portal applications, it can be modified by developers programmatically or administrators using portal admin tool in staging and production environment. The following are components of look and feel: Look & Feel file(.laf) Skins Skeletons Themes Chromosomes and Genes Shells Layouts

Menus 8. Difference between skin and skeleton? Skins are collections of images, cascading style sheets (CSS), and JavaScript files that allow changes to be made to the look and feel of a portal without modifying the portal components directly. Skins basically provide the overall colors, graphics, and styles used by all components in a desktop interface. Skeletons provide the physical boundaries of the portal components and provides references to the images, CSS, and JavaScript functions from the skin needed to render the portal. A portal web project can have multiple skeletons. When you select a Look & Feel for a desktop, a specific skin and skeleton is used. Each type of portal component, from a desktop to a portlet's title bar, has an associated JSP file, called a skeleton file that renders it. 9. Difference between Genes and chromosomes?

Genes are implemented as simple text strings that are inserted into CSS styles or JavaScript files as variables. You define genes in an XML .chromosome file. In a .chromosomefile, you could define a gene called "bodyColor" and assign it a value of "red," like this: <gene name="bodyColor"> <value>#FF0000</value> </gene> In your CSS file, you could use bodyColor as a variable: body { border:1px solid ${bodyColor} }; When the page is rendered in a browser, the inlined style definition becomes: body { border:1px solid #FF0000 }; When you use this gene in your CSS files, you only need to modify the gene value itself to cascade the change throughout all configured CSS files rather than changing the value manually in each CSS file. Chromosomes are simply the files that contain one or more genes. You can create multiple chromosome files that contain the same gene names, though with different gene values. By simply referencing a different chromosome in your Look & Feel file, you can simulate a completely different Look & Feel without changing any of your core Look & Feel files. 10. What is shell? Shells define the header and footer regions of a portal. Shells control the content that appears in a desktop's header and footer regions. You can configure a shell to use specific JSPs, page flows, HTMLs to display content in a header or footer. You can place portlets too in a header or footer of a shell. 11. Difference types of portlets? JSP and HTML Portlets JSR 168 portlets Java Page Flow Portlets Java Server Faces (JSF) Portlets Struts Portlets Remote Portlets Browser (URL) Portlets 12. How is IPC (inter-portlet communication) happening? Watch this page soon for an answer... 13. What are portlet modes? Portlet Modes allow you to affect the end users ability to edit the portlet or display Help for the portlet. You add icon buttons to a portlets title bar to indicate the availabili ty of a mode. The following predefined modes exist for WebLogic Portal: * Edit Lets you specify a custom file that lets users modify the portlet's content when they click the Edit button. * Help Lets you specify a custom file that shows users help content for the portlet when they click the

Help button. You can also create your own custom portlet modes using WebLogic Portal. 14. Types of portlet states? Portlet states determine the end users ability to affect the rendering of a portlet. WebLogic Portal supports following portlet states: Normal the typical rendered appearance of the portlet. Minimize Collapses the portlet, leaving only the title bar, when the user clicks the Minimize button. Maximize Makes the portlet take up the entire desktop area (not including the desktop header and footer) when the user clicks the Maximize button. Float Displays the portlet in a popup window when the user clicks the Float button. Delete Removes the portlet from the desktop when the user clicks the Delete button.When you use the Portlet Wizard to create a portlet, state and mode settings are available on the Portlet Details dialog. These settings can also be edited in the portlets Properties view.

Portal Interview Questions


1) What is a Portlet? Explain its capabilities. Portlets are UI components that are pluggable and are managed, displayed in a web portal. Markup code fragments are produced by the portlets which are aggregated into a portal page. A portlet resembles an application that is web based and is hosted in a portal. Email, discussion forums, news, blogs, weather reports are some of the examples of portlets. 2) Explain Portal architecture.

The core implementation of the portal is UI, hosted by a Portal server. The HTTP requests, HTML responses, and returning appropriate portal pages are handled by the Portal UI. Enterprise Web application also can be handled by the Portal Server. The portal architecture has the following: Automaton Server: This server performs the management of job scheduling and implementation of a portal. It accesses all remote crawlers and profile services retrieved and stored from a remote database. Image Server: This server hosts images and other web page content used by web services and a portal. With this configuration, large static files are to be sent directly to the browser without portal server impacts. Search Server: This server indexes and searches all the information, applications, communities, documents, web sites through portal. Collaboration Server: Web content publication and management for portals and web applications are supported by this server. Its functionality can be accessed by a remote web services through Enterprise Web Development kit. Content Server: Publication and management of web content for portals and web applications along with form based publishing, branding, templates, content expiration is allowed by this server.

Authentication Server: This server handles the portal authentication for users and remote services can be accessed through EDK. Remote Servers: Web services written using the EDK are hosted by remote servers. The servers can be in different countries, on different platforms and domains 3) What is PortletSession interface?

User identification across many requests and transient information storage about the user is processed by PortletSession interace. One PortletSession is created per portlet application per client. The PortletSession interface provides a way to identify a user across more than one request and to store transient information about that user. The storing of information is defined in two scopes- APPLICATION_SCOPE and PORTLET_SCOPE. APPLICATION_SCOPE: All the objects in the session are available to all portlets,servlets, JSPs of the same portlet application, by using APPLICATION_SCOPE. PORTLET_SCOPE: All the objects in the session are available to the portlet during the requests for the same portlet window. The attributes persisted in the PORTLET_SCOPE are not protected from other web components. 4) What is PortletContext interface?

The portlet view of the portlet container is defined by PortletContext. It allows the availability of resources to the portlet. Using this context, the portlet log can be accessed and URL references to resources can be obtained. There is always only one context per portlet application per JVM 5) Why portals?

The following are the reasons to use portals: Unified way of presenting information from diverse sources. Services like email, news, infotainment, stock prices and other features are offered by portals. Provides consistent look and feel for enterprise. Eg. MSN, Google sites. 6) Explain the types of portals, Function-based portals and User-based portals

Function-based portals Horizontal Portals: These are the portals are of type general interest. Yahoo!,Lycos,AOL,Freeserve,Sympatico are examples of horizontal portals. Vertical Portals They provide a gateway to the information pertaining to a specific industry such as insurance, banking, finance, automobile, telecom etc. User-Based Portals B2B Portals The enterprises extend to suppliers and partners by using B2B portals. B2C Portals The enterprises extend to customers for ordering, billing, services by using B2C portals. B2E Portals The enterprise knowledge base integration and related applications into user customizable environment is done with B2E portals. This environment is like one stop shop.

7) JBoss portal server features Highly integrated web applications costs reduce by portals. JBoss enables the reusability of branding and deploying new applications of composite nature. The users and the industry can be customized, personalized their experiences in a secure and well governed manner by using JBoss portal. JBoss incorporate components into a portal as reusable and standardized portlets, as Jboss is platform independent. Performance and scalability is ensured.

8) Explain the concepts and capabilities of Portal Structure Markup Language, PSML PSML was created to allow abstraction and content structure within Jetspeed. It has two markups: Registry markup: Describes the availability of resources to the Jetspeed engine. It supports multiple portlet registries. Site markup: The availability of portlets are described by this markup, which is displayed for a given user.

Das könnte Ihnen auch gefallen