BEA Systems, Inc.

Type-Safe Access to BEA WebLogic Server 9.0 MBeans (Deprecated)

(Methods marked with @since 9.0.0.0 are not available through the deprecated MBeanHome interface.)


weblogic.management.configuration
Interface StartupClassMBean

All Superinterfaces:
ClassDeploymentMBean, ConfigurationMBean, DeploymentMBean, weblogic.descriptor.DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, weblogic.descriptor.SettableBean, weblogic.management.WebLogicMBean

public interface StartupClassMBean
extends ClassDeploymentMBean

Provides methods that configure startup classes. A startup class is a Java program that is automatically loaded and executed when a WebLogic Server instance is started or restarted. By default, startup classes are loaded and executed after all other server subsystems have initialized and after the server deploys modules. For any startup class, you can override the default and specify that the server loads and executes it and before it deploys JDBC connection pools and before it deploys Web applications and EJBs.

Deprecation of MBeanHome and Type-Safe Interfaces

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.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
 
Fields inherited from interface weblogic.management.configuration.DeploymentMBean
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 boolean getFailureIsFatal()
          Specifies whether a failure in this startup class prevents the targeted server(s) from starting.
 boolean getLoadBeforeAppActivation()
          Specifies whether the targeted servers load and run this startup class after activating JMS and JDBC services and before activating applications and EJBs.
 boolean getLoadBeforeAppDeployments()
          Specifies whether the targeted servers load and run this startup class before activating JMS and JDBC services and before starting deployment for applications and EJBs.
 void setFailureIsFatal(boolean flag)
          Sets the value of the FailureIsFatal attribute.
 void setLoadBeforeAppActivation(boolean flag)
          Sets the value of the LoadBeforeAppActivation attribute.
 void setLoadBeforeAppDeployments(boolean flag)
          Sets the value of the LoadBeforeAppDeployments attribute.
 
Methods inherited from interface weblogic.management.configuration.ClassDeploymentMBean
getArguments, getClassName, setArguments, setClassName
 
Methods inherited from interface weblogic.management.configuration.DeploymentMBean
addTarget, getDeploymentOrder, getTargets, removeTarget, setDeploymentOrder, setTargets
 
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

getFailureIsFatal

public boolean getFailureIsFatal()

Specifies whether a failure in this startup class prevents the targeted server(s) from starting.

If you specify that failure is not fatal, if the startup class fails, the server continues its startup process.

Returns:
The failureIsFatal value
Default value:
false

getLoadBeforeAppActivation

public boolean getLoadBeforeAppActivation()

Specifies whether the targeted servers load and run this startup class after activating JMS and JDBC services and before activating applications and EJBs.

If you enable this feature for a startup class, a server loads and runs the startup class before the activate phase. At this point, JMS and JDBC services are available. (Deployment for applications and EJBs consists of two phases: prepare and activate.)

Enable this feature if the startup class needs to be invoked after JDBC connection pools are available but before the applications are activated and ready to service client requests.

If you do not enable this feature, a server instance loads startup classes after it activates JMS and JDBC services, EJBs, and applications.

See Also:
DeploymentMBean
Default value:
false

getLoadBeforeAppDeployments

public boolean getLoadBeforeAppDeployments()

Specifies whether the targeted servers load and run this startup class before activating JMS and JDBC services and before starting deployment for applications and EJBs.

If you enable this feature for a startup class, a server loads and runs the startup class before the deployment prepare phase. At this point, JMS and JDBC services are not yet available. (Deployment for applications and EJBs consists of two phases: prepare and activate.)

If you do not enable this feature, a server instance loads the startup class after it activates JMS and JDBC services, EJBs, and applications.

Returns:
The loadBeforeAppDeployments value
See Also:
DeploymentMBean
Default value:
false

setFailureIsFatal

public void setFailureIsFatal(boolean flag)

Sets the value of the FailureIsFatal attribute.

Parameters:
flag - The new failureIsFatal value
See Also:
getFailureIsFatal()
Default value:
false

setLoadBeforeAppActivation

public void setLoadBeforeAppActivation(boolean flag)

Sets the value of the LoadBeforeAppActivation attribute.

See Also:
getLoadBeforeAppActivation()
Default value:
false

setLoadBeforeAppDeployments

public void setLoadBeforeAppDeployments(boolean flag)

Sets the value of the LoadBeforeAppDeployments attribute.

Parameters:
flag - The new loadBeforeAppDeployments value
See Also:
getLoadBeforeAppDeployments()
Default value:
false

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.