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 COMMBean

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

public interface COMMBean
extends ConfigurationMBean

This bean represents the server-wide configuration of COM

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.

Since:
7.0.0.0
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String getNTAuthHost()
          The address of the primary domain controller this server uses for authenticating clients.
 boolean isApartmentThreaded()
          Controls the flag that is used to initialize COM in native mode.
 boolean isMemoryLoggingEnabled()
          Specifies whether this server should log memory usage.
 boolean isNativeModeEnabled()
          Specifies whether this server should use native DLLs to allow Java objects to interact with COM objects.
 boolean isPrefetchEnums()
          Specifies whether this server should prefetch the next element in a java.lang.Enumeration (that had been improperly converted from a COM VariantEnumeration type) so the correct value is returned when the hasMoreElements() method is called.
 boolean isVerboseLoggingEnabled()
          Specifies whether verbose logging is enabled.
 void setApartmentThreaded(boolean b)
          Sets the value of the ApartmentThreaded attribute.
 void setMemoryLoggingEnabled(boolean enable)
          Sets the value of the MemoryLoggingEnabled attribute.
 void setNativeModeEnabled(boolean enable)
          Sets the value of the NativeModeEnabled attribute.
 void setNTAuthHost(String host)
          Sets the value of the NTAuthHost attribute.
 void setPrefetchEnums(boolean enable)
          Sets the value of the PrefetchEnums attribute.
 void setVerboseLoggingEnabled(boolean enable)
          Sets the value of the VerboseLoggingEnabled 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

getNTAuthHost

public String getNTAuthHost()

The address of the primary domain controller this server uses for authenticating clients. (If not specified, COM clients will not be authenticated.)

Returns:
The nTAuthHost value

isApartmentThreaded

public boolean isApartmentThreaded()

Controls the flag that is used to initialize COM in native mode.

By default, when jCOM initializes COM in native mode, it starts COM with the COINIT_MULTITHREADED. This causes COM to use Multi-Threaded Apartment (MTA) thread model. In the MTA model, calls to an object are not synchronized by COM. Multiple clients can concurrently call an object that supports this model on different threads, and the object must provide synchronization in its interface/method implementations using synchronization objects such as events, mutexes, semaphores, etc. MTA objects can receive concurrent calls from multiple out-of-process clients through a pool of COM-created threads belonging to the object's process.

If the server logs a Class Not Registered Message when starting COM in native mode, try setting this property. This will cause jCOM to start COM in native mode, using COINIT_APARTMENTTHREADED option instead of the COINIT_MULTITHREADED option. In a component that is marked as Apartment Threaded, each method of that component will execute on a thread that is associated with that component. This separates the methods into their own "Apartments", with each instance of a component corresponding to one apartment. While there is only one thread inside of a component, each instance of that component will have its own thread apartment.

Returns:
The apartmentThreaded value
Default value:
false

isMemoryLoggingEnabled

public boolean isMemoryLoggingEnabled()

Specifies whether this server should log memory usage.

Returns:
The memoryLoggingEnabled value
Default value:
false

isNativeModeEnabled

public boolean isNativeModeEnabled()

Specifies whether this server should use native DLLs to allow Java objects to interact with COM objects. (Supported on Windows only.)

Returns:
The nativeModeEnabled value
Default value:
false

isPrefetchEnums

public boolean isPrefetchEnums()

Specifies whether this server should prefetch the next element in a java.lang.Enumeration (that had been improperly converted from a COM VariantEnumeration type) so the correct value is returned when the hasMoreElements() method is called.

Some COM methods return a COM VariantEnumeration type. The java2com tool automatically converts the returned type into a java.lang.Enumeration. This is not a perfect match since COM enumerations have no equivalent to the hasMoreElements() call. The client must continue to call nextElement until a NoSuchElementException occurs. Setting this property will cause jCOM to prefetch the next element in behind the scenes and return the correct value when hasMoreElements is called.

Returns:
The prefetchEnums value

isVerboseLoggingEnabled

public boolean isVerboseLoggingEnabled()

Specifies whether verbose logging is enabled.

Returns:
The verboseLoggingEnabled value
Default value:
false

setApartmentThreaded

public void setApartmentThreaded(boolean b)

Sets the value of the ApartmentThreaded attribute.

Parameters:
b - The new apartmentThreaded value
See Also:
isApartmentThreaded()

setMemoryLoggingEnabled

public void setMemoryLoggingEnabled(boolean enable)

Sets the value of the MemoryLoggingEnabled attribute.

Parameters:
enable - The new memoryLoggingEnabled value
See Also:
isMemoryLoggingEnabled()

setNativeModeEnabled

public void setNativeModeEnabled(boolean enable)

Sets the value of the NativeModeEnabled attribute.

Parameters:
enable - The new nativeModeEnabled value
See Also:
isNativeModeEnabled()

setNTAuthHost

public void setNTAuthHost(String host)

Sets the value of the NTAuthHost attribute.

Parameters:
host - The new nTAuthHost value
See Also:
getNTAuthHost()

setPrefetchEnums

public void setPrefetchEnums(boolean enable)

Sets the value of the PrefetchEnums attribute.

Parameters:
enable - The new prefetchEnums value
See Also:
isPrefetchEnums()

setVerboseLoggingEnabled

public void setVerboseLoggingEnabled(boolean enable)

Sets the value of the VerboseLoggingEnabled attribute.

Parameters:
enable - The new verboseLoggingEnabled value
See Also:
isVerboseLoggingEnabled()

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