Tuesday, January 29, 2008

Changing Toplink connection

When changing Toplink to talk to another database, the following 3 files need to be touched.

1) model\src\META-INF\TopLinkMap.xml
toplink:login xsi:type="toplink:database-login"

2) model\src\META-INF\sessions.xml
login

3) model\toplink\TopLinkMap\TopLinkMap.mwp
login-infos

1 comment:

Doug said...

The login information stored in the TopLinkMap.xml is typically used only by the Mapping Workbench to provide development time login usage.

I recommend developers store their runtime/production database login information or data-source details within the sessions.xml. This then becomes the file where all changes are made when pointing the system ata different runtime database.

Doug