Java EE Data Source: Overview
A data source has a set of properties that identify and describe the real-world data source that it represents. These properties include information such as the location of the database server, the name of the database, and the network protocol to use to communicate with the server. In addition, a data source object works with a Java Naming and Directory Interface (JNDI) naming service. After a data source object is registered with a JNDI naming service, an application can use the JNDI API to access that data source object, which can then be used to connect to the data source it represents.
This page displays the general configuration of a deployed data source, such as the name that appears in Deployments table, the name of the WAR or EJB JAR file in which it is packaged, and the scope of the data source.
Configuration Options
Name Description Deployment Name The name of this deployment.
Module Name The name of this module within the deployment.
EJB Name The name of this EJB within the deployment.
Bean Name The name of this data source within the deployment.
Scope The scope of this data source.
Component
: Names in this namespace are only shared within this component..Module
: Names in this namespace are shared by all components in a module. For example, the EJB components defined in an aejb-jar.xml
file.Application
: Names in this namespace are shared by all components and modules in an application. For example, theapplication-client
,web
, and EJB components in an.ear
file.Global
: Names in this namespace are shared by all the applications in the server.