WebSphere Portal Server - WPCP V5 YourCo Sample

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > May 2004 > WPCP V5 YourCo Sample





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WPCP V5 YourCo Sample
AEagle

2004-05-13, 8:22 am

I have successfully imported the YourCo sample in WPCP and my WPCP50 db2
authoring server database is filled with content (table NEWS, ...).

..then I wanted to publish my content on the runtime server.
My questions are :
- what is the target database? where is it configured?
- where are the runtime tables? In WPS 4.2, there used to have a wcpdemo
sample page to create runtime tables. Is there the same mecanism in WPS5?
- is there a specific name for the runtime datasource?
- how to setup runtime database properly against V5 sample?

ANY HELP WOULD BE GREAT!
AEagle

2004-05-14, 12:37 am

I found out this by myself. If any one else is having a same problems here is the answers

The trick is to use the proper publish URL and create the datasource properly. Because of the changes to datasources in WAS v5 with regards to J2EE 1.2 vs. J2EE 1.3 apps, you have to create a v5 datasource with a JNDI name of 'jdbc/wpcpsample'. This can point to any DB that IS NOT the same as the WPCP authoring DB. If you use the same DB, then you'll hit some major problems with the runtime and authortime WPCP resource tables overwriting each other.

Now, because the datasource is v5, and the portlets that pull the data back are v5, you can't publish to <hostname>/wps/PersAdmin/publishtarget, as that is a J2EE 1.2 app, and requires a v4 datasource. Consequently, there's another publish target in the sample10.war, which should have a URL like <hostname>/wps/PA_1_0_69/publishtarget, you'll have to check where the sample10 got installed under WPS_HOME/installedApps (for the '1_0_69' part, yours may be different, as it depends on your WPS install)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com