Initialize method

Description

This method initializes J2EE services for an EJB client application. When an EJB client is stopped during a transaction, this method restarts the EJB client and starts the recovery of a global transaction.

Invoke the initialize method from the user code of an EJB client, immediately after starting the EJB client process.

Note that if the javax.naming.InitialContext is generated or if the getUserTransaction method of the UserTransactionFactory class is invoked before invoking the initialize method, the initialization process is performed at that time.

Format

public static void initialize()
throws InitializeFailedException;

Parameters

None

Exceptions

com.hitachi.software.ejb.ejbclient.InitializeFailedException:
An attempt to initialize services failed.

Return value

None

Caution

If an exception occurs while initializing the services, the EJB client runtime system properties may not have been set properly. Take an action based on the exception message.