on 10-06-2008 2:21 PM
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
Hi Isaias,
Since CAF uses Portal database, you must just to configure your portals to use a central (commom) database.
Check this useful (old) document:
http://help.sap.com/bp_epv260/EP_JA/documentation/How-to_Guides/03_EP6SP2_TechInfr_v2_final.pdf
Best Regards,
Pedro Nunes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pedro,
I don't like to change the metadata database, but i would like that the tables of my Business Object can be stored on any database. Example, a Oracle database on another machine. Just my Business Object. I will do a test change the persistence.xml and identify the results.
Best regards
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.