Comments
litl_phil wrote: While it's nice that Google and Acer share the vision of cloud-based computing, it's also worth noting that we at litl already have a webbook on the market (available at litl.com) that runs our own cloud-based OS. Unlike Chrome, litlOS is focused on creating a new and better web experience for the home, so we don't have the usual browser interface, we have our own innovative UI. In conjunction with easel mode (litl's inverted-V position) and our growing cohort of litl channels (special apps t...
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


WSRP Really Works!
How two competing portal server products can integrate with one another

For simplicity's sake, I've created two JSR-168 portlets, which you can download at the end of the article:

  • BEA Java Portlet - Echoes back a message entered into a text field by the user when the user clicks the Update Message button.
  • IBM Java Portlet - Allows the user to input addresses, edit addresses, delete addresses, and list addresses. To reduce the complexity of the portlet, the application doesn't persist the information to a database, but instead stores the information in memory.
I deployed BEA Java Portlet, which is contained inside of the BEAPortalEAR.ear file, to WebLogic Portal. I deployed IBM Java Portlet, which is contained inside of the IBMPortletWeb.war, to WebSphere Portal. I'll be using both of these portlets throughout the tutorials to demonstrate WSRP.

Scenario 1: WebLogic Portal Acts as a Consumer and WebSphere Portal Acts as a Producer
For WebLogic Portal to consume a WebSphere Portal portlet, several things need to happen:

  • WebSphere Portal
  • Functions as a producer
  • Offers (shares) the portlet
  • WebLogic Portal
  • Functions as a consumer
  • Adds a producer
  • Creates a remote portlet
  • Adds the remote portlet to a page
Fortunately for us, WebSphere Portal and WebLogic Portal both function as consumers and producers without requiring any special setup. However, the other steps still need to be performed.

Note that if security is enabled on the producer, the producer must also provide the consumer with additional information, including the security setup of the producer portal. Security is outside the scope of this article.

WebSphere Portal - Offer a Portlet
Log onto WebSphere Portal (e.g., http://portalpc:10038/wps/portal). Click the Launch button and select Administration to navigate to the WebSphere Portal Administration Console. (Notice that the URL is in the format http://hostname:port/wps_context_root/wps_default_home.)

Click the Portlets node underneath Portlet Management in the navigation bar.

Search for the portlet that you want to share using the Manage Portlets administration portlet. Click the first icon (Provide Portlets) to the right of IBM Java Portlet.

Click OK when asked whether or not you want to provide IBM Java Portlet as a Web Service. A checkmark will appear in the Provided column and a success message will appear at the top of the Manage Portlets portlet.

If you want to see a list of all the provided offered portlets, select All provided portlets from the Search by drop-down menu and click Search.

Should you decide in the future that you no longer want to share this portlet, you can click on the icon again. Notice that the icon now has a line drawn through it and is labeled Withdraw Portlet. If you perform this action, the checkmark in the Provided column will disappear.

Congratulations! That's all there is to sharing a portlet. Now it's on to configuring the consumer.

WebLogic Portal - Add a Producer
Log onto the WebLogic Portal Administration Console for the portal EAR project that you've deployed (e.g., http://localhost:7001/BEAPortalEARAdmin) and click Portal Management. (Notice that the URL is in the format (http://hostname:port/ear_nameAdmin.)

Expand Portal Resources and then click on the Library node in the navigation bar. WebLogic Portal will display a listing of the all the different types of components that you can use in your portal, including portlets and pages. Also, listed there is a node called Remote Producers. Click on Remote Producers.

Next, click on the Add Producer button. A wizard will open that steps you through the process of adding a producer. Keep in mind that adding a producer means that WebLogic Portal is simply "discovering" a producer so it can "consume" its portlets.

The first step in the process is the most critical. Enter the Producer WSDL URL. This URL points to the WSDL document that contains information about the producer and how to connect to its services. Specifically, it contains the URLs of the WSRP interfaces supported by the provider. This includes the two mandatory service interfaces mentioned earlier (i.e., service description and markup) as well as any optional interfaces provided by that service. In the case of WebSphere Portal, the standard format for this URL is:

http://producer_portal_host:producer_port/wps_context_root/wsdl/wsrp_ser...

In our case, this URL translates to:

http://portalpc:10038/wps/wsdl/wsrp_service.wsdl.

Enter this URL.

Now that you've input the URL, click the Search button. A single producer should be located. Select the producer from the results list. Before proceeding to the next step of the wizard, check the checkbox View producer's available portlets before adding producer. This will let you view the producer-offered portlets in step 2 of the wizard; otherwise, the wizard will skip step 2.

Click Next. In our case, a single portlet should be displayed that corresponds with IBMJavaPortlet.

Click Next. Now it's time to enter the producer properties that will be stored on the consumer side. The only item that you're required to input is the Producer Name (Handle). Input IBM WebSphere Portal Server v6.0. Optionally, you can input a vendor and a description.

Click Next. Notice that the wizard skips step 4, the registration step. Remember that IBM WebSphere Portal doesn't support the registration interface, since it's optional. (See Figure 2)

Click Finish to create the remote producer. The remote producer will be displayed inside the Browse Remote Producers table. There is a Test Connection button that you can click on to make sure that WebLogic Portal can communicate with WebSphere Portal. However, if it couldn't, you would have gotten an error message during the first step of the wizard.


About Matt Silver
Matt Silver is a courseware developer and trainer, currently serving as a senior consultant for Web Age Solutions.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Hi Matt,

I have some problem with retrieving the producer, when i am entering the wsdl of my service(https) which is in WSRP and hosted on IIS, then its saying unable to retrieve producer.
And if i try the same in IE its getting the wsdl, now can you tell me where i am missing the configuration settings in WebLogic9.2.


Your Feedback
Ambuj wrote: Hi Matt, I have some problem with retrieving the producer, when i am entering the wsdl of my service(https) which is in WSRP and hosted on IIS, then its saying unable to retrieve producer. And if i try the same in IE its getting the wsdl, now can you tell me where i am missing the configuration settings in WebLogic9.2.
Enterprise Open Source Magazine Latest Stories . . .
Oracle seems to have divided the open source ranks over the MySQL delay it’s having closing its acquisition of Sun. Eben Moglin, the GPL’s most ardent defender and delineator, the lawyer who has worked hand in glove for years with the Free Software Foundation’s founder Richard Stallman...
Cloud computing is a game changer. The cloud is disrupting traditional software and hardware business models by disrupting how IT service gets delivered. Entrepreneurial opportunities abound as this classic disruptive technology begins to proliferate, so it is no surprise that SYS-CON'...
The irony is that Oracle has advanced MySQL, lost money in the process, and helped its competitors - all at the same time. When Oracle buys Sun and controls MySQL the gift (other than to Microsoft SQL Server) keeps on giving as the existential threat to RDBs is managed by Redwood Shore...
WSO2, the open source SOA company, today announced the launch of the WSO2 Cloud Platform. Available today, the new WSO2 Cloud Platform features a family of WSO2 Cloud Virtual Machines; WSO2 Cloud Connectors for enabling fast, secure cloud services; and the multi-tenant WSO2 Governance-...
Now, the open source Mozilla Thunderbird client software can be used with Open-Xchange collaboration software. The "Community OXtender for Thunderbird" software connector gives users full access to appointments and contacts stored in the Open-Xchange Server and enables them to use Thun...
Morph Labs, a leading provider of enterprise cloud computing technology, today announced an introductory trial of the Morph CloudServer, an open, standards-based server IT organizations can use to rapidly model and evaluate their cloud implementations. A miniature "Cloud Environment in...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE