Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CAF Datasource

Hi all,

When we develop a new BusinessObject (Local Persistence) the CAF uses the database of system. Does anybody knows if is possible to specify a DataSource to CAF uses?

I'm thinking about High Availability environment, if i have the following scenario:

SAP Web Dispatcher and server1, server2 and server3, with each server with the CAF Application deployed the database will be created for each one, and it isn't desired. How to says to CAF uses the specific datasource that points to single Database server?

Its a good practice change the persistence.xml of CAF ejbmodule project:

- Default-

<?xml version="1.0"?>

<persistence version="1.0">

<persistence-unit name="testunit">

<jta-data-source>SAP/CAF_RT</jta-data-source>

<jar-file>sap.comcafcoreearpersistence.jar</jar-file>

</persistence-unit>

</persistence>

- Custom--

<?xml version="1.0"?>

<persistence version="1.0">

<persistence-unit name="testunit">

<jta-data-source>MY_DATASOURCE</jta-data-source>

<jar-file>sap.comcafcoreearpersistence.jar</jar-file>

</persistence-unit>

</persistence>

Best regards

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question