Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

How to convert uPortal to DLM

The instructions for making this conversion are also in the DLM Administration Guide: http://www.ja-sig.org/wiki/display/UPC/DLM+Administration+GuideThe seminar environment contains the properties file and data file needed to run initportal.  If you are running in the uPortal 101 project, you don't need to make any changes.  To switch back to Aggregated Layout Manager you could use original.data.xml and original.portal.properties both in the OtherProperties directory.  Note that when you change the properties file you must also change the profiles in the database to use the DLM structure and theme transform style sheets. 

Step 1.

Se the properties in portal.properties

org.jasig.portal.layout.UserLayoutStoreFactory.implementation=org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore
org.jasig.portal.layout.UserLayoutManagerFactory.coreImplementation=org.jasig.portal.layout.dlm.DistributedLayoutManager 

After changing this value redeploy using, "ant deploy"

Step 2 is to change the database profiles one of 2 ways.

 The first option is to use SQL by running the hsql manager. 

Modify user accounts in the database. Specifically, the UP_USER_PROFILE table contains a lookup of the structure and theme stylesheets that should be used by users.

  • Start HSQLDB by going to hsqldb/demo directory and running "runServer.bat -port 8887" or "./runServer.sh -port 8887"
  • Next, in the demo directory start the hsql manager with the command runManager (bat or .sh file).
  • Under File>Connect choose

Type:

HSQL Database Engine Server

Driver:

org.hsqldb.jdbcDriver

Url:

jdbc:hsqldb:hsql://localhost:8887

User:

sa

Execute the SQL:

UPDATE up_user_profile SET structure_ss_id=4, theme_ss_id=3
WHERE theme_ss_id=11;

commit;

The other option, if you are starting with a brand new database is to edit data.xml and run initportal again

Step 3.

Restart Tomcat. You should now see the Guest page with the DLM "Administrator's Guide" on the Welcome tab. 

  • No labels