DataSourceBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Information for this MBean is available only at runtime.

To view information about this MBean, start the host WebLogic Server instance, then use WebLogic Scripting Tool in interactive mode. Or use some other MBean browser.

   
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.j2ee.descriptor.DataSourceBean
Factory Methods
Additional Access Points In addition to accessing this MBean by invoking a factory method, you can also access this MBean from the following MBean attributes:


Related MBeans

This section describes attributes that provide access to other MBeans.


    Properties

    Spcecifies a JDBC DataSource property. This may be a vendor-specific property or a less commonly used DataSource property.

               
    Factory MethodscreateProperty ( )

    destroyProperty (JavaEEPropertyBean )

    Factory methods do not return objects.

    See Using factory methods.

    Lookup OperationlookupProperty(String name)

    Returns a javax.management.ObjectName for the instance of JavaEEPropertyBean named name.

    Privileges Read only
    TypeJavaEEPropertyBean[]
    Relationship type: Containment.


    Attributes

    This section describes the following attributes:


    ClassName

    The data source implementation class.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value

    DatabaseName

    The name of the database connected to this data source.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value

    Description

    A description of this DataSource.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value

    Id

    Specifies a string which is used to identify this DataSource.

           
    Privileges Read/Write
    Typejava.lang.String

    InitialPoolSize

    The number of physical connections to create when creating the connection pool in the data source. If unable to create this number of connections, creation of the data source will fail.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    IsolationLevel

    The transaction isolation level used for connections.

           
    Privileges Read/Write
    Typejava.lang.String
    Legal Values
    • TRANSACTION_READ_UNCOMMITTED
    • TRANSACTION_READ_COMMITTED
    • TRANSACTION_REPEATABLE_READ
    • TRANSACTION_SERIALIZABLE

    LoginTimeout

    The maximum amount of time, in seconds, that this data source waits while attempting to connect to a database.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    MaxIdleTime

    The maximum amount of time, in seconds, a physical connection can remain unused in the pool before the connection is closed.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    MaxPoolSize

    The maximum number of physical connections that this connection pool can contain.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    MaxStatements

    The total number of statements that a connection pool keeps open.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    MinPoolSize

    The minimum number of physical connections that this connection pool can contain.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    Name

    The JNDI name of the data source.

           
    Privileges Read/Write
    Typejava.lang.String

    Password

    The password to use for connection authentication with the database.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value

    PortNumber

    The port number a server uses to listen for requests.

           
    Privileges Read/Write
    Typeint
    Default Value-1

    ServerName

    The database server name.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Valuelocalhost

    Transactional

    When enabled, connections participate in transactions.

           
    Privileges Read/Write
    Typeboolean
    Default Valuetrue

    Url

    The JDBC URL. If the Url property is specified along with other standard DataSource properties such as ServerName, DatabaseName and PortNumber, the more specific properties take precedence and Url is ignored.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value

    User

    The user name to use for connection authentication with the database.

           
    Privileges Read/Write
    Typejava.lang.String
    Default Value


    Operations

    This section describes the following operations:


      isSet

      Return true if the given property has been explicitly set in this bean.

         
      Operation Name"isSet"
      ParametersObject [] {  propertyName }

      where:

      • propertyName is an object of type java.lang.String that specifies:

        property to check

      SignatureString [] { "java.lang.String" }
      Returns boolean
      Exceptions
      • java.lang.IllegalArgumentException
        IllegalArgumentException if propertyName is not a recognized property

      unSet

      Restore the given property to its default value.

         
      Operation Name"unSet"
      ParametersObject [] {  propertyName }

      where:

      • propertyName is an object of type java.lang.String that specifies:

        property to restore

      SignatureString [] { "java.lang.String" }
      Returns void
      Exceptions
      • java.lang.IllegalArgumentException
        UnsupportedOperationException if called on a runtime implementation.