Chapter 8 Creating J2EE Applications for BEA WebLogic


Specifying Data Sources

A PowerAMC Data Source is used to identify where the object data is stored. Usually a Data Source corresponds to a Database. Database schemas are defined through Physical Data Models. So a Data Source has a list of Physical Data Models which represents a database schema, where data handled by objects are stored:


A Data Source contains information about the connection to its corresponding database. By default, the connection is made using ODBC but Jconnect or JDBC can be used by specifying a connection string.

A default login and password can be specified to fully predefine a connection to the database.

It is not necessary to predefine a login, a password or a connection in PowerAMC using WebLogic persistence services.

An Object Oriented Model can have several Data Sources i.e. several databases as sources.

PowerAMC Data Sources correspond to WebLogic JDBC Data sources. You can redefine the name of a WebLogic Data Source using the data-source-name extended attribute.


By default, PowerAMC uses the code of its Data Sources as the WebLogic data source name.

Note: A PowerAMC Data Source is required before defining a mapping.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.