common.start
Class ArsStartup

java.lang.Object
  |
  +--common.start.ArsStartup
All Implemented Interfaces:
weblogic.common.T3StartupDef

public class ArsStartup
extends Object
implements weblogic.common.T3StartupDef


Field Summary
static String ccServiceUrl
           
 
Constructor Summary
ArsStartup()
          Public default constructor required by any WL startup class.
 
Method Summary
static String getCreditCardUrl()
           
 void setServices(weblogic.common.T3ServicesDef services)
          Method required by the T3StartupDef interface.
 String startup(String name, Hashtable args)
          Method required by the T3StartupDef interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ccServiceUrl

public static String ccServiceUrl
Constructor Detail

ArsStartup

public ArsStartup()
Public default constructor required by any WL startup class.
Method Detail

setServices

public void setServices(weblogic.common.T3ServicesDef services)
Method required by the T3StartupDef interface. Parameter services could be used to interact with WebLogic services (JDBC, logging, io, admin, etc.)
Specified by:
setServices in interface weblogic.common.T3StartupDef

startup

public String startup(String name,
                      Hashtable args)
               throws Exception
Method required by the T3StartupDef interface. Performs all initializations required by the system. It will register this application within the replication manager. It will store in a static field the URL of the credit card RMI application, so that the EJBs can reference to this static field. (To avoid the ArsStartup class to be garbage collected and hence loose content in static fields, this instance is bound to JNDI.)
Specified by:
startup in interface weblogic.common.T3StartupDef
Parameters:
name - A string that identifies this startup class.
args - Table with arguments passed to the startup class. They are configured in the WL console when the startup class is "deployed" and consist of pairs. For this startup class, the argument are: - "NamingService", with the RMI URL of the "God" rmi app. - "CreditCard", with the RMI URL of the "CreditCard" rmi app.
Throws:
Exception - In case of error during initialization

getCreditCardUrl

public static String getCreditCardUrl()


Copyright © 2003 Team Two.