Version 2

    Migrating to Portal 2_4

     

     

    -


    CAUTION!!!

     

    Migration tool uses hibernate schema export - beware and always backup your database before playing with it

     

    -


     

     

     

     

     

     

    To migrate data to portal 2.4 you need to proceed with folowing steps:

     

     

     

    -- In you AS with portal 2.2 instance you need to have two datasources pointing to the existing jbp_2.2 database and destination jbp_2.4 database where you want to move your data. So you can make new datasource called "portal-24-ds.xml" looking like this:

     

    <?xml version="1.0" encoding="UTF-8"?>
    <local-tx-datasource>
        <jndi-name>PortalDS_2_4</jndi-name>
        <connection-url>jdbc:mysql://localhost:3306/jbossportal24?useServerPrepStmts=false</connection-url>
        <driver-class>org.gjt.mm.mysql.Driver</driver-class>
        <user-name>portal</user-name>
        <password>portalpassword</password>
    </local-tx-datasource>
    

     

    -- Next you need to obtain JBoss Portal 2.4 sources. You can do this by running:

    cvs co jboss-portal-2.4

     

    -- Then you need to compile and deploy migration application (you need to have proper JBOSS_HOME env):

    cd jboss-portal-2.4
    cd build
    ./build.sh
    cd ../migration
    ./buils.sh deploy
    

     

    -- Now you should have migration application deployed in your application server instance

     

     

    -- Run your browser and go to: http://localhost:8080/portal-migration User is: admin and password is: simplePassword

     

     

    -- Now you just need to go thru several steps with wizzard like web application. Remember to point to correct datasources for source and destination databases - PortalDS and PortalDS_2_4

     

     

    -- You should have all data migrated to separate database. Now you need to undeploy jbp_2.2 jboss-portal.sar, deploy jbp_2.4 jboss-portal.sar and update descriptors of your portlet to 2.4 format if needed.