BEA Systems, Inc.

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

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


weblogic.management.runtime
Interface ServletSessionRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, weblogic.management.runtime.RuntimeMBean, weblogic.management.WebLogicMBean

Deprecated. As of WebLogic 9.0, use WebAppComponentRuntimeMBean instead.

public interface ServletSessionRuntimeMBean
extends weblogic.management.runtime.RuntimeMBean

This class is used for monitoring a WebLogic servlet session within a WebLogic server.

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.


Method Summary
 String getMainAttribute()
          Deprecated.  
 long getMaxInactiveInterval()
          Deprecated.  
 long getTimeLastAccessed()
          Deprecated.  
 void invalidate()
          Deprecated.  
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, 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
 

Method Detail

getMainAttribute

public String getMainAttribute()
Deprecated.  

Provides a copy (as a string) of an attribute specified by the user, such as user-name, associated with this session.

Gets a Stringified copy of an attribute specified by the user (like user-name) associated with this session. Where should this attribute be specified? In ServletDeploymentRuntimeMBean?

Returns:
The mainAttribute value

getMaxInactiveInterval

public long getMaxInactiveInterval()
Deprecated.  

Returns the timeout (seconds) for the session

Returns:
session's maxInactiveInterval

getTimeLastAccessed

public long getTimeLastAccessed()
Deprecated.  

Provides a record of the last time this session was accessed.

Returns:
The timeLastAccessed value

invalidate

public void invalidate()
Deprecated.  

Invalidates this session.


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