|
Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AppDeploymentMBean
public interface JDBCDataSourceFactoryMBean
This MBean represents the object used to create data sources that applications use to access application-scoped JDBC connection pools.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime.
Field Summary |
---|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
String |
getDriverClassName()
Deprecated. The full package name of JDBC driver class used to create the physical database connections in the connection pool. |
String |
getFactoryName()
Deprecated. The name used in deployment descriptor files to reference this JDBC data source factory. |
String |
getPassword()
Deprecated. The database user password. |
byte[] |
getPasswordEncrypted()
Deprecated. The encrypted database user password. |
Map |
getProperties()
Deprecated. The list of properties passed to the JDBC driver that are used to create physical database connections. |
String |
getURL()
Deprecated. The URL of the database to connect to. |
String |
getUserName()
Deprecated. The database account user name used in physical database connections. |
void |
setDriverClassName(String s)
Deprecated. Sets the value of the DriverClassName attribute. |
void |
setFactoryName(String s)
Deprecated. Sets the value of the FactoryName attribute. |
void |
setPassword(String s)
Deprecated. Sets the value of the Password attribute. |
void |
setPasswordEncrypted(byte[] bytes)
Deprecated. Encrypts the user password and sets the value of the PasswordEncrypted attribute. |
void |
setProperties(Map m)
Deprecated. Sets the value of the Properties attribute. |
void |
setURL(String s)
Deprecated. Sets the value of the URL attribute. |
void |
setUserName(String s)
Deprecated. Sets the value of the UserName attribute. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Method Detail |
---|
void setUserName(String s)
Sets the value of the UserName attribute.
s
- The new userName valueJDBCDataSourceFactoryMBean.getUserName()
String getUserName()
The database account user name used in physical database
connections. This may be overridden by user-name
in
the descriptor.
void setPassword(String s)
Sets the value of the Password attribute.
s
- The new password valueJDBCDataSourceFactoryMBean.getPassword()
String getPassword()
The database user password. If the user password is specified in the descriptor, the descriptor value overrides this value.
As of 8.1 sp4, when you get the value of this attribute, WebLogic Server does the following:
PasswordEncrypted
attribute.
When you set the value of this attribute, WebLogic Server does the following:
PasswordEncrypted
attribute to the
encrypted value.Using this attribute (Password
) is a potential security risk because
the String object (which contains the unencrypted password) remains in
the JVM's memory until garbage collection removes it and the memory is reallocated. Depending on how
memory is allocated in the JVM, a significant amount of time could pass
before this unencrypted data is removed from memory.
Instead of using this attribute, use PasswordEncrypted()
.
JDBCDataSourceFactoryMBean.getPasswordEncrypted();
byte[] getPasswordEncrypted()
The encrypted database user password. If the user password is specified in the descriptor, the descriptor value overrides this value.
To set this attribute, use weblogic.management.EncryptionHelper.encrypt()
to encrypt the value. Then set this attribute to the output of the encrypt() method.
To compare a password that a user enters with the encrypted
value of this attribute, go to the same WebLogic Server instance
that you used to set and encrypt this attribute
and use weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password. Then compare the encrypted values.
void setPasswordEncrypted(byte[] bytes)
Encrypts the user password and sets the value of the PasswordEncrypted attribute.
bytes
- The new password value, as a byte arrayJDBCDataSourceFactoryMBean.getPasswordEncrypted()
void setURL(String s)
Sets the value of the URL attribute.
s
- The new uRL valueJDBCDataSourceFactoryMBean.getURL()
String getURL()
The URL of the database to connect to. The format of the URL varies by JDBC driver.
This may be overridden by url
in the
descriptor.
void setDriverClassName(String s)
Sets the value of the DriverClassName attribute.
s
- The new driverClassName valueJDBCDataSourceFactoryMBean.getDriverClassName()
String getDriverClassName()
The full package name of JDBC driver class used to create the physical database connections in the connection pool.
This may be overridden by driver-name
in the
descriptor.
Map getProperties()
The list of properties passed to the JDBC driver that are used to create physical database connections. For example: server=dbserver1.
void setProperties(Map m)
Sets the value of the Properties attribute.
m
- The new properties valueJDBCDataSourceFactoryMBean.getProperties()
void setFactoryName(String s)
Sets the value of the FactoryName attribute.
s
- The new factoryName valueJDBCDataSourceFactoryMBean.getFactoryName()
String getFactoryName()
The name used in deployment descriptor files to reference this JDBC data source factory.
This is referenced from the connection-factory
element in weblogic-application.xml
.
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |