Sunday, February 7, 2010

Alfresco Document repository

Document Management is one of the most important task of any software developing company. Documents are created at almost all phases of the software development process and these documents are kept as live documents most of the time. So constant upgrading, versioning and reviewing are essential parts of the document repository.

Alfresco offers document management using familiar interfaces to get rapid user adaption built on a repository that offers transparent, out-of- sight services. It has fully supported Enterprise Edition and a freely downloadable open source Community Edition.
  • Highly scalable, clustered J2EE architecture using commodity software and hardware.
  • Capable of Standards-based JSR-168 and REST-based integration.
  • Single sign-on through NTLM or LDAP.
  • Integrated Transformation Services: Office to ODF/PDF, PowerPoint to Flash
  • Compatibility with JSR-168.

Friday, February 5, 2010

Liferay and SOA

One of the main characteristic of a portal is that the origin of the data that it holds can be initialized at any place and integration of this information is handled by the Web portal. Another important characteristic of a portal is different users who have different roles within the organisation must be able to see different views of the same web portal depending on permissions they have. The main component of the portal is the portlets which are self contained interactive elements written according to a particular standards like JSR-168, JSR-286 etc. Portlets are the components that render the markup fragment that represents the applications. Because of these characteristics of the web portal and the portlets it is possible to extend the Liferay using the Service Oriented Architecture (SOA).

All the applications that we integrate with the Liferay are portlets and since portlets are developed independent from the portal itself and loosely coupled with the portal, it is possible to use SOA. Since Liferay portal uses and open SOA framework and provides tools and framework to extend SOA to other enterprise applications, SOA can be easily implemented. The Liferay provides mechanism to the developers to quickly implement the SOA concept. The Liferay portal comes packaged with a powerful tool known as ServiceBuilder which helps to develop the SOA. There are lot of technologies needed for SOA such as Web Services, Spring and Hibernate and it is necessary to write and configure lot of files when implementing SOA. But the ServiceBuilder of Liferay automates most of these things and the only thing the developer has to do is implement the business logic which is the key aspect of the portal. So it is possible to extend the Liferay using these things to implement powerful SOA.

When implementing SOA with the Liferay the first thing we have to do is define the data model. In order to do that it is necessary to write an XML file called service.xml with all the necessary fields, keys and finder methods. After that we need to run the ServiceBuilder using Ant and number of files are generated. Among these files, Spring configuration files, SOAP and Tunnel classes, WSDL files Javascript web services methods, Data model classes, Hibernate classes, SQL create and index scripts are included.

After Defining the data model it is necessary to declare the business methods. We can declare any business methods in Remote and Local service classes. After run the ServiceBuilder task in Ant again, those methods will be propagated into the SOAP and Tunnel classes and WSDL files and Javascript Web Services methods.

The final step in implementing SOA is implementing the business logic. The remote implementation class do security and permission checks like any other J2EE application. The local implementation class contains the business logic that we allow the trusted sources to invoke. After doing all these three steps we have to compile the code and SOA is implemented.

Web Services for Remote Portlets (WSRP) is another way of implementing SOA with SDWMS. WSRP is a specification which defines the methods on how to combine SOAP based Web Services that generate mark-up fragments within a portal. The main goal of the WSRP is to bring the Web Services and the benefits of SOA to the end users. WSRP is built on top of the existing Web Services Standards such as SOAP, WSDL and UDDI.

Web Services allows to re-use the back end services and WSRP allows to reuse the user interface. As an example we can use this with Liferay as follows. If we decide to provide the users of the SDWMS to retrieve news alerts or price of stocks, we can first look whether there is already Web services which provide these functionalities. We can search in UDDI registries for web services portlets to find a web service which provides this functionality. After finding such a portlet, the process of adding it to the portal is simple. Since the portlet is being consumed through WSRP we don’t need to do any custom coding or deployment activity.

WSRP architecture defines three types of actors. They are,
  • WSRP producer – In the above example it is the web service that which offers portlets which implement the WSRP interfaces and the news alerts or stock quotes functionality.
  • WSRP portlet – This is the pluggable user interface component that runs inside the WSRP producer and it can be accessed remotely through the interface define by the producer.
  • WSRP consumer – This is the client that invokes the WSRP web services offered by the producer. In above scenario it is the SDWMS portal.
The process of Discover, publish and run the web services using WSRP is shown by the following figure.

Thursday, February 4, 2010

Working With Liferay Portal.

As the world's leading open source portal platform, Liferay portal provides a unified web interface to the data and tools scattered across many sources. Few months ago I started to work with Liferay in order to develop an Workflow Management System. I guess I'm in the correct track by selecting the Liferay as my portal platform. :)

Personalization, Content Aggregation, Authentication are major key words associated with a portal. Let's see how to work around with them soon !!!!!

Wednesday, February 3, 2010

LDAP Authentication and Single Sign On(SSO)

When implementing my Workflow Management System, I have to implement Single Sign On. Following are the facts I gathered about SSO and LDAP during my research.
  • SSO is the ability for a user to enter the same id and password to logon to multiple applications within an enterprise.
  • Single sign on benefits are:
  • Ability to enforce uniform enterprise authentication and/or authorization policies across the enterprise
  • End to end user audit sessions to improve security reporting and auditing
  • Removes application developers from having to understand and implement identity security in their applications
  • Usually results in significant password help desk cost savings
  • Since the internet is stateless, this means that the single sign on software must check every request by the user's browser to see if there is an authentication policy pertaining to the resource or application the user is trying to access.
  • In a medium to large enterprise, this means that every time the user clicks on a different URL, there is traffic between the user's browser, the web or application servers and the security server.
  • Therefore, most modern single sign on systems use LDAP (Lightweight Directory Access Protocol) directories to store the authentication and authorization policie
  • The LDAP directories are made for high performance lookups thus addressing the high traffic load.
  • Further, the LDAP directories are often the source for the single sign on system to authenticate against.
  • The above are the reasons why LDAP directories and authentication have taken on such a dominant role in enterprise authentication. LDAP directories offer the following features:
  • They are very quick for doing identity reads against as compared to traditional databases
  • They are low cost - in fact some LDAP directories are available for free
  • Virtual LDAP directories enable quick linkage between multiple databases and multiple LDAP directories
  • LDAP directories are excellent for doing rapid LDAP authentication against for any digitized authentication
  • LDAP directories have a universal protocol enabling quick interaction and exchange of identity information between enterprises
  • LDAP directories can be easily partitioned to place the directory close to the end user, thus improving performance and reducing network load
Single Sign On (SSO) systems mostly use LDAP authentication. The enterprise user logs on in the morning and sees normally a form based enterprise login screen. The user enters in their id and password. The SSO software then takes the information and sends it to the security server using an encrypted connection. The security server in turn then logs on to the LDAP server on behalf of the user by providing the LDAP server with the user's id and password. If successful, the security server then proceeds with any authorization and/or lets the user proceed to the application or resource they require.

LDAP Authentication Implementation

Often times a simple LDAP directory authentication project hits trouble. These can be because of:
  • Poor authoritative sources
  • Poor identity data
  • No unique global id's
  • Poor synchronization between the authoritative source and the LDAP directory
  • Poor design of the LDAP and SSO authentication strength
  • Poor design of the LDAP and SSO failover and disaster recovery

Monday, February 1, 2010

Web Portals

A web portal refers to a web site or web based interface which offers a broad array of resources and services and it presents information from diverse sources in a unified way. There are several portal categories and this chapter discuss more about the enterprise portals and the currently available open source portal engines.

An enterprise portal is a Web-based interface for users of enterprise applications and it provides access to enterprise information such as corporate databases, applications, and systems.
Java Portlet Specification (JSR) 168 that enables interoperability among portlets and portals was released in mid of 2003. This specification defines a set of APIs for portlets and addresses standardization for preferences, user information, portlet requests and responses, deployment packaging, and security. These standards allow portal developers, administrators and consumers to integrate standards-based portals and portlets across a variety of vendor solutions. A plethora of offerings are currently available in the portal software market and they make it possible to bring together all aspects of portal functionality.

The major goal of the portal software vendors is to provide a scalable, flexible and a reliable portal framework and some of the vendors have enhanced the portal framework by including more features with their framework. Those frameworks with the enhanced features can be considered as a complete portal solution. Some of the major functionalities of web portal software are,
  • User and community management
  • Personalization
  • Aggregation
  • Security
  • Integration
  • Search
  • Interaction management and administration
Some portal software is proprietary and encourages use of other products by the same vendor, whereas other offerings are very open. So what software to choose from and develop on depends on one’s priorities and requirements.

Some examples of open source portals are,
  • Liferay
  • JBoss
  • Exo
  • GridSphere
  • uPortal

Enterprise Integration Architecture(EAI)

During my research on EAI, I gathered following facts about it.

Integration of the applications and the business processes is a top priority for many enterprises today. Requirements for improved customer service or self service, rapidly changing business environments and support for the mergers and acquisitions are major drivers for increased integration between existing “stovepipe” systems and information silos. Many different tools and technologies are available to address the complexities of integration of the systems and EAI is one of the most challenging architecture.

EAI is defined as the use of software and computer systems architectural principles to integrate a set of enterprise computer applications. It is an integration framework composed of a collection of technologies and services which form a middleware to enable integration of systems and applications across the enterprise. EAI is a business need to make diverse applications in an enterprise including partner systems to communicate to each other to achieve a business objective in a seamless reliable fashion irrespective of platform and geographical location of these applications.

EAI is a flexible and cost effective system integration strategy and architecture that replaces traditional point-to-point integration and EAI can be described as the task of getting independently designed applications to work together. Before the advent of EAI, applications were interfaced on a point-to-point basis. Interfaces were programmed for each interface point in each application. This solution delivered inflexible interfaces that organizations found difficult to manage. Integration complexity increased as more point-to-point interfaces were implemented. Although this is a tightly coupled and operationally effective approach, it often required significant maintenance cost and can limit the extensibility of the solution in relation to other business applications.

In implementing EAI solutions organizations have been able to realize various benefits including:
  • Ease of Development and Maintenance
  • Enhanced performance and reliability
  • Implementation of a centralized information bus
  • Extension of the legacy system lifecycle
  • Reduced time to market
  • Real time information access among systems
  • Streamlines business processes and helps raise organizational efficiency.
  • Maintains information integrity across multiple systems

Although EAI is beneficial for a company in several ways it has some disadvantages as below:
  • High initial development costs, especially for small and mid-sized businesses (SMBs).
  • EAI implementations are very time consuming, and need a lot of resources.
  • Require a fair amount of up front design, which many managers are not able to envision or not willing to invest in. Most EAI projects usually start off as point-to-point efforts, very soon becoming unmanageable as the number of applications increase.
References:
  1. www.mincom.com/company/whitepapers/eai_whitepaper_us.pdf
  2. www.liquidhub.com/docs/Horizons_EAI.pdf

Software as a Service (SaaS)

Following is a small description of SaaS which I was found during my research on it.

Software as a Service (SaaS) is a model of software deployment whereby a provider licenses an application to customers for use as a service on demand. SaaS software vendors may host the application on their own web servers or download the application to the consumer device, disabling it after use or after the on-demand contract expires. The on-demand function may be handled internally to share licenses within a firm or by a third-party application service provider (ASP) sharing licenses between firms.

SaaS is becoming an increasingly prevalent delivery model as underlying technologies that support Web services and service-oriented architecture (SOA) mature and new developmental approaches, such as Ajax, become popular. Meanwhile, broadband service has become increasingly available to support user access from more areas around the world .
The traditional model of software distribution, in which software is purchased for and installed on personal computers, is sometimes referred to as software as a product.

BENEFITS OF SAAS

Some of the benefits of SAAS model are as follows.

  • Easier administration.
  • Automatic updates and patch management.
  • Compatibility: All users will have the same version of software.
  • Easier collaboration, for the same reason.
  • Global accessibility.
  • Save money and time.
  • Focus on technology budgets on competitive advantage rather than infrastructure.
  • Much lower risk.
DISADVANTAGES OF SAAS

Some of the disadvantages of SAAS are as follows .

  • Some organizations find it very difficult to relinquish control or trust third parties to manage their applications and data
  • Some vertical markets require industry specific business applications for which SaaS solutions are not available.
  • Organizations without clear objectives and defined business processes will be no better off with a SaaS solution than with an on-premise solution.
References:
  1. http://searchcloudcomputing.techtarget.com/sDefinition/0,,sid201_gci1170781,0.html
  2. http://www.trumba.com/connect/knowledgecenter/software_as_a_service.aspx
  3. http://www.online-crm.com/saas_advantages_disadvantages.htm