GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.loaders.weblogic
Class GridWeblogicStartup

java.lang.Object
  extended by org.gridgain.grid.loaders.weblogic.GridWeblogicStartup
All Implemented Interfaces:
GridWeblogicStartupMBean, weblogic.common.T3StartupDef

@GridLoader(description="Weblogic loader")
public class GridWeblogicStartup
extends Object
implements GridWeblogicStartupMBean

GridGain loader for WebLogic implemented as a pair of start and shutdown classes. This is a startup class. Please consult WebLogic documentation on how to configure startup classes in Weblogic. Weblogic loader should be used for tight integration with Weblogic AS. Specifically, Weblogic loader integrates GridGain with Weblogic logging, MBean server, and work manager (JSR-237).

The following steps should be taken to configure startup and shutdown classes:

  1. Add Startup and Shutdown Class in admin console (Environment -> Startup & Shutdown Classes -> New).
  2. Add the following parameters for startup class:
  3. Add the following parameters for shutdown class:
  4. Change classpath for WebLogic server in startup script: CLASSPATH="${CLASSPATH}:${GRIDGAIN_HOME}/gridgain.jar:${GRIDGAIN_HOME}/libs/"

For more information see Configuring and Starting GridGain and Startup and Shutdown Classes.

Note: Weblogic is not shipped with GridGain. If you don't have Weblogic, you need to download it separately. See http://www.bea.com for more information.

How to use AOP with Bea WebLogic

The following steps should be taken before using Gridify annotation in applications on Bea WebLogic.

AspectJ AOP

  1. Add GridWeblogicStartup with configuration described above.
  2. Classpath of the WebLogic should contain the ${GRIDGAIN_HOME}/config/aop/aspectj folder as well as as all GridGain libraries (see above).
  3. Add JVM option -javaagent:${GRIDGAIN_HOME}/libs/aspectjweaver-1.5.3.jar (replace ${GRIDGAIN_HOME} with absolute path) into startWeblogic.{sh|bat} script which is located in "your_domain/bin" directory.
Note: Bea Weblogic works much slower if you use AspectJ with it.

Spring AOP

Spring AOP framework is based on dynamic proxy implementation and doesn't require any specific runtime parameters for online weaving. All weaving is on-demand and should be performed by calling method GridifySpringEnhancer.enhance(Object) for the object that has method with Gridify annotation.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

 

Constructor Summary
GridWeblogicStartup()
           
 
Method Summary
 String getConfigurationFile()
          Gets configuration file path set in XML configuration for this service.
 void setConfigurationFile(String cfgFile)
          Sets configuration file path.
 void setServices(weblogic.common.T3ServicesDef t3ServicesDef)
          Deprecated. 
 String startup(String str, Hashtable params)
          See http://e-docs.bea.com/wls/docs100/javadocs/weblogic/common/T3StartupDef.html for more information.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridWeblogicStartup

public GridWeblogicStartup()
Method Detail

startup

public String startup(String str,
                      Hashtable params)
               throws Exception
See http://e-docs.bea.com/wls/docs100/javadocs/weblogic/common/T3StartupDef.html for more information.

Specified by:
startup in interface weblogic.common.T3StartupDef
Throws:
Exception - Thrown if error occurred.
Parameters:
str - Virtual name by which the class is registered as a startupClass in the config.xml file
params - A hashtable that is made up of the name-value pairs supplied from the startupArgs property
Returns:
Result string (log message).

setServices

@Deprecated
public void setServices(weblogic.common.T3ServicesDef t3ServicesDef)
Deprecated. 

See http://e-docs.bea.com/wls/docs100/javadocs/weblogic/common/T3StartupDef.html for more information.

Specified by:
setServices in interface weblogic.common.T3StartupDef
Parameters:
t3ServicesDef - Weblogic services accessor.

getConfigurationFile

public String getConfigurationFile()
Gets configuration file path set in XML configuration for this service.

Specified by:
getConfigurationFile in interface GridWeblogicStartupMBean
Returns:
Configuration file path.

setConfigurationFile

public void setConfigurationFile(String cfgFile)
Sets configuration file path.

Specified by:
setConfigurationFile in interface GridWeblogicStartupMBean
Parameters:
cfgFile - Configuration file path.

toString

public String toString()

Overrides:
toString in class Object

GridGain™ 2.0.3
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.