YOUR FEEDBACK
Rapid Module Development for DotNetNuke
MICHEAL SMITH wrote: GO TO THE LINK, U HAVE EVERYTHING U WANT THERE. MICHEAL...
SOA World Conference
Virtualization Conference
$50 Savings Expire May 23, 2008... – Register Today!

2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts

SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Managing BEA WebLogic Portal Content Management With Release 8.1
An import/export tool

Digg This!

Page 2 of 2   « previous page

Content Data Export
Content data presents more complexity. The structure can be hierarchical, can contain many combinations of different data types, and can have multiple values. Therefore, the JavaScript tree presented during the export can be very extensive. The interface allows you to select and deselect entire branches or individual items. Only the selected branches will be included in the exported XML file, so you could modify the root node in the XML file to reposition the entire set of content to another location in the tree. This would be one way to move or copy an entire branch of a content management system.

Content Data Schema
Once again, there is no official schema definition for the content data, and so I had to create one (cmContent.xsd). There are two types of nodes within WLP content management, content and hierarchy. You may notice that the schema only differentiates between these two based on using a node attribute (see Listing 2). This is because these two types are actually identical. That's right, you can have content on a hierarchy node. Most users of WLP content management don't realize this feature exists. In the WLP Portal Admin tool, you can create a hierarchy node and then define a data type and content for that node.

Content Data Import
The content data import is the most interesting. There are many situations to consider when importing data into an existing content management system. When there are data conflicts, it is important to identify them and allow the operator to make a logical choice between importing and ignoring certain content. When using the import tool, items that are in conflict are shown with an exclamation point (see Figure 3) and details can be displayed showing what properties are different (see Figure 4). The user can then decide whether or not to import this particular node. It is important to note that the tool uses content hierarchy and name for matching, not ID numbers. If a node is renamed, no conflict will be seen. IDs were not used because it is very possible that ID numbers will be different from one system to another, but the hierarchy and names would be the same.

Solving the Initial Problems
The overall purpose of this article is to show how this tool can be used to solve the initial problems.

Problem #1: Migration
This was the main purpose for developing this tool. Content types and data can be migrated from one system to another through XML files. It is important to note that the two systems do not need to be accessed at the same time. The exported XML file can be created and imported at a later date (deployment).

Problem #2: Backup/Restore
Migration of data is not the only use for such a tool. You can easily take snapshots of a production system for backup and recovery purposes. The graphical tool or automated script can be used to perform the backup. The XML file name contains the date to make it easy to do periodic backups. Recovery is very easy because the latest backup files can be used and specific data can be included or excluded from the recovery process.

Problem #3: Datatype Changes
Solving this problem is a bit more difficult. Data can be exported to an XML file and then it can be deleted from the repository, which allows the data type to be modified. However, it may be necessary to modify the XML file to reflect the datatype changes. There are many good XML editing tools available to do this, or a simple Perl script can be written. The import tool is very forgiving of datatype changes and so it may not be necessary to change the XML file at all. The import will always attempt to add as much data as possible. For example, if a particular property is deleted from the content management system, then the import will simply ignore this data in the XML file and add the rest of the properties. If a property is added, the import will leave this new property blank.

Problem #4: Bulk Changes
WebLogic Portal provides a mechanism for doing bulk loading, however, it is sometimes more convenient to do this by creating an XML file. For example, for testing purposes, I created a content management type that reflected properties of a file: name, size, permissions. I then wrote a simple Perl script that scanned my filesystem and created a matching XML hierarchy with the file properties. After I imported this into my content management system, I had a full representation of every file on my computer.

Conclusion
The content management system in 8.1 is very powerful and usable, but lacks the important content management migration tools. In WebLogic Portal 9.0, many of these features will be added, but until then, this tool can help make building enterprise-quality applications on top of WebLogic Portal 8.1's content management systems much easier to manage.


Page 2 of 2   « previous page

About John Graves
John Graves has been with BEA for more than seven years and is currently working as an internal trainer for Education Services specializing in WebLogic Portal. He spent the first five years of his time with BEA in the Advanced Service Group doing full life-cycle project work.

WebLogic Developer's Journal wrote: Managing BEA WebLogic Portal Content Management With Release 8.1. One of the nice features of the WebLogic Portal 8.1 release is a fairly extensive content management system. It does not, nor was it ever intended to, compete with the large content management vendors on the market today, but for many applications it works quite well. There are some problems however with using the content management system. This article will address several of them and provide details of a dev2dev tool that will help get around them.
read & respond »
BEA WEBLOGIC LATEST STORIES
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
Microsoft To Keynote 4th International Virtualization Conference & Expo
Mike Neil is general manager for virtualization strategy in the Windows Server Division at Microsoft. Mike is focused on the delivery of the Windows virtualization technology, including Windows Server 2008 Hyper-V, Microsoft Hyper-V Server and Virtual PC 2007. Mike also directs the tec
Virtualization Meets DaaS - Desktop-as-a-Service
After a $1.5 million angel round, Desktone, which was started in 2006 by Eric Pulier, who also started SOA Software, US Interactive and IVT, picked up $17 million in first-round funding about a year ago from Highland Capital Partners, SoftBank Capital, Citrix Systems and the China-base
Engelbart's Usability Dilemma: Efficiency vs Ease-of-Use
The mouse was the original idea of Doug Engelbart who was the head of the Augmentation Research Center (ARC) at Stanford Research Institute. Engelbart's philosophy is best embodied, in my opinion, in the design of another device that he invented, the five-finger keyboard - with keys li
Web 2.0 Is Fundamentally About Empowering People
'Unlocking content to be remixed into new business value' is the driver of Web 2.0 in the enterprise, says Rod Smith, IBM VP of Emerging Internet Technologies, in this Exclusive Q&A with Jeremy Geelan on the occasion of IBM's release of a new technology created by IBM researchers, code
Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
Here is a question that I have been pondering on and off for quite a while: Why do 'cool kids' choose Ruby or PHP to build websites instead of Java? I have to admit that I do not have an answer. Why do I even care? Because I am a Java developer. Like many Java developers, I get along w
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

MOST READ THIS WEEK
ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES
AmberPoint Extends SOA Governance to Apache ServiceMix, BEA AquaLogic Service Bus 3.0, BEA WebLogic Integration, Cisco ACE XML Gateway, JBoss Enterprise Application Platform and Oracle Fusion
AmberPoint announced today that it has extended the reach of its runtime SOA governance