Module jakarta.ejb
Package jakarta.ejb

Annotation Interface Init


@Target(METHOD) @Retention(RUNTIME) public @interface Init
Designates a method of a session bean that corresponds to a create<METHOD> method of an adapted home or local home interface (an interface that adapts an enterprise bean 2.1 or earlier EJBHome or EJBLocalHome client view respectively).

The result type of such an Init method is required to be void, and its parameter types must be exactly the same as those of the referenced create<METHOD> method(s).

An Init method is only required to be specified for stateful session beans that provide a RemoteHome or LocalHome interface.

The name of the adapted create<METHOD> method of the home or local home interface must be specified if the adapted interface has more than one create<METHOD> method and the method signatures are not the same.

Since:
EJB 3.0
See Also: