Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Developing a Service Information Portal on the WebLogic Platform

Moving to Java Portlets on WebLogic Portal

Moving to Java Portlets and BEA's Portal Server
With a promising portal server, the team was ready to exit the portal server market and enter the portlet content market. Issues the team needed to resolve included:

  • Moving modules to portlets
  • Translating portal views
  • How data filtering would be supported
  • Coupling more loosely with authentication and authorization requirements
Moving Modules to Portlets
The first part of the project involved migrating a SIP module to a Java Portlet. Luckily, the Portlet API and Servlet API are very similar in their use of request and response objects. This simplified the move, since all of the modules were Servlets. Much of the code could remain, with minimal refactoring.

One of the major differences the team encountered was the use of the PortletURLs and render parameters. By using servlets, SIP 3 could get the entire HTTP request and response, and send any parameters back and forth through Web pages. SIP 3 uses a common coding practice, which involves passing a module ID parameter to help identify a request for a certain module configuration. When a module ID is encountered during a drill down, the SIP portal server displays only the requested module in a maximized window. The SIP portal server had no support for drilling down into two modules at the same time within the same browser. The following JSP snippet is similar to what is found in SIP 3:

<a href="portal?service=<%=serviceID%>&moduleID=<%=moduleID%>">
naviagation link</a>

In the world of portlets for SIP 4, PortletURLs help pass the correct parameters to the correct portlet. A portal server must be able to determine which portlet should receive which parameters and ensure that the portlets retrieve the correct parameters. Using the aforementioned technique would not work; parameter passing needed to be redone. This problem is especially evident when testing in other portal servers, which are free to encode portlet parameters in any way they wish. Changes were made in the SIP portlet code, the display, or both. The following technique corrects this problem of parameter passing:

PortletURL drillDownURL = response.createRenderURL();
drillDownURL.setParameter("service", serviceID);

In addition, the following is updated in the JSP:

<a href="<%= drillDownURL.toString()%>">naviagation link</a>

The SIP product predated some of the Web development tools and technologies used today, and the work described above to correct URL parameter passing was a common task during migration. However, by transferring URL handling into the Portlet API, some additional options were made available. Previously, a drill down in modules would only display the content of a single module. Using the Portlet APIs, the team can drill down and navigate in multiple portlets simultaneously. This can be especially handy when SIP is used to diagnose IT issues, which commonly requires access to a few different spots to obtain the full picture.

Translating Portal Views
The portal view functionality is an easy migration to BEA's terms and technologies. In fact, BEA's concept of books, pages, and nested books provides a significant improvement to SIP users. SIP 3 only supports one level of sheets, which is equivalent to a single BEA portal book with as many pages as needed. There are no possibilities of hierarchical navigation and portal layout within SIP 3. Figure 1 shows the "sheets" provided in SIP 3, and Figure 3 shows SIP content with a nested book and the multiple-level navigation. SIP 3 stored its view files in XML as shown in Listing 1, so an XSL transform can migrate a SIP 3 view file to a BEA portal template file.

Supporting Data Filtering
The data filtering tools within SIP did not change in their capability, but their application was modified. Data filtering can be a key piece of functionality for users, and it's very dependant upon the currently selected role of the SIP 3 user. For SIP 4, a portlet preference is used. When a user accesses a portlet that employs data filtering, SIP 4 obtains the user's filter preference. The filters within SIP 4 contain a new security specification, which details whether a filter is to be available to a list of roles, to all authenticated users, or to all users (including anonymous access). See Figure 4 for the updated relationship between organization filters and SIP portlets.

Moving data filtering into portlet preferences allows far fewer portlets to serve a larger audience of users. In fact, this is true with all portlet preferences. SIP 3 uses module configurations within a view file as shown in Listing 1. If one user prefers a different module view, SIP 3 requires a different role, portal view, and set of module configurations. In contrast, portlet preferences allow any number of users to customize their own personal preferences from a single portlet configuration. Therefore, hundreds or thousands of module configurations used in SIP 3 can now equal a handful of portlet configurations.

Authentication and Authorization
Authentication and authorization concepts were also an easy item to migrate in BEA. All of the BEA tools and integration options to manage users, roles, and groups can now be used for SIP. For existing SIP users, a WebLogic weblogic.Admin batch file can be created to convert all of the SIP users and roles into BEA users, roles, and groups. The following is a weblogic.Admin batch file snippet created during migration.

More Stories By Eric Peterson

Eric Peterson works within HP?s OpenView organization as a software engineer on the Service Information Portal product. He has worked on J2EE Web applications and Web site development for the past eight years, for companies that range from small local ISPs to international enterprises. www.managementsoftware.hp.com/products/sip/

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

@ThingsExpo Stories
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
Organizations planning enterprise data center consolidation and modernization projects are faced with a challenging, costly reality. Requirements to deploy modern, cloud-native applications simultaneously with traditional client/server applications are almost impossible to achieve with hardware-centric enterprise infrastructure. Compute and network infrastructure are fast moving down a software-defined path, but storage has been a laggard. Until now.
DXWorldEXPO LLC announced today that the upcoming DXWorldEXPO | CloudEXPO New York event will feature 10 companies from Poland to participate at the "Poland Digital Transformation Pavilion" on November 12-13, 2018.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
The best way to leverage your CloudEXPO | DXWorldEXPO presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering CloudEXPO | DXWorldEXPO will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at CloudEXPO. Product announcements during our show provide your company with the most reach through our targeted audienc...
In an era of historic innovation fueled by unprecedented access to data and technology, the low cost and risk of entering new markets has leveled the playing field for business. Today, any ambitious innovator can easily introduce a new application or product that can reinvent business models and transform the client experience. In their Day 2 Keynote at 19th Cloud Expo, Mercer Rowe, IBM Vice President of Strategic Alliances, and Raejeanne Skillern, Intel Vice President of Data Center Group and ...
More and more brands have jumped on the IoT bandwagon. We have an excess of wearables – activity trackers, smartwatches, smart glasses and sneakers, and more that track seemingly endless datapoints. However, most consumers have no idea what “IoT” means. Creating more wearables that track data shouldn't be the aim of brands; delivering meaningful, tangible relevance to their users should be. We're in a period in which the IoT pendulum is still swinging. Initially, it swung toward "smart for smart...
DXWorldEXPO LLC announced today that All in Mobile, a mobile app development company from Poland, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. All In Mobile is a mobile app development company from Poland. Since 2014, they maintain passion for developing mobile applications for enterprises and startups worldwide.
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world.
In his keynote at 19th Cloud Expo, Sheng Liang, co-founder and CEO of Rancher Labs, discussed the technological advances and new business opportunities created by the rapid adoption of containers. With the success of Amazon Web Services (AWS) and various open source technologies used to build private clouds, cloud computing has become an essential component of IT strategy. However, users continue to face challenges in implementing clouds, as older technologies evolve and newer ones like Docker c...
DXWorldEXPO LLC announced today that ICC-USA, a computer systems integrator and server manufacturing company focused on developing products and product appliances, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City. ICC is a computer systems integrator and server manufacturing company focused on developing products and product appliances to meet a wide range of ...
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
We are seeing a major migration of enterprises applications to the cloud. As cloud and business use of real time applications accelerate, legacy networks are no longer able to architecturally support cloud adoption and deliver the performance and security required by highly distributed enterprises. These outdated solutions have become more costly and complicated to implement, install, manage, and maintain.SD-WAN offers unlimited capabilities for accessing the benefits of the cloud and Internet. ...
Headquartered in Plainsboro, NJ, Synametrics Technologies has provided IT professionals and computer systems developers since 1997. Based on the success of their initial product offerings (WinSQL and DeltaCopy), the company continues to create and hone innovative products that help its customers get more from their computer applications, databases and infrastructure. To date, over one million users around the world have chosen Synametrics solutions to help power their accelerated business or per...
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...