|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)AppDeploymentMBean
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. For
more information, see "Developing Manageable Applications with JMX"
on http://www.oracle.com/technology/documentation/index.html.
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 |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface weblogic.descriptor.DescriptorBean |
addBeanUpdateListener, addPropertyChangeListener, createChildCopy, createChildCopyIncludingObsolete, getDescriptor, getParentBean, isEditable, removeBeanUpdateListener, removePropertyChangeListener |
Method Detail |
public 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.
public 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
.
public 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. 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()
.
getPasswordEncrypted()
public 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, pass an unencrypted string to the MBean server's
setAttribute
method. WebLogic Server encrypts the value and
sets the attribute to the encrypted value.
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.
public Map getProperties()
The list of properties passed to the JDBC driver that are used to create physical database connections. For example: server=dbserver1.
public 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.
public String getUserName()
The database account user name used in physical database
connections. This may be overridden by user-name
in
the descriptor.
public void setDriverClassName(String s)
Sets the value of the DriverClassName attribute.
s
- The new driverClassName valuegetDriverClassName()
public void setFactoryName(String s)
Sets the value of the FactoryName attribute.
s
- The new factoryName valuegetFactoryName()
public void setPassword(String s)
Sets the value of the Password attribute.
s
- The new password valuegetPassword()
public void setPasswordEncrypted(byte[] bytes)
Encrypts the user password and sets the value of the PasswordEncrypted attribute.
bytes
- The new password value, as a byte arraygetPasswordEncrypted()
public void setProperties(Map m)
Sets the value of the Properties attribute.
m
- The new properties valuegetProperties()
public void setURL(String s)
Sets the value of the URL attribute.
s
- The new uRL valuegetURL()
public void setUserName(String s)
Sets the value of the UserName attribute.
s
- The new userName valuegetUserName()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |