@jc:ejb Annotation

Specifies the target EJB's home interface for an EJB control.

The home interface set here can be overridden at runtime through the EJB control method setJndiName(). The method has the same syntax as the attribute home-jndi-name below. For more information see Creating a New EJB Control.

Note: The @jc:ejb annotation appears in EJB controls with the .jcx extension. EJB controls with the .ctrl extension, which were created in a previous version of WebLogic Workshop, use the @jws:ejb annotation. Controls with the .ctrl extension continue to be supported in WebLogic Workshop.

Syntax

@jc:ejb

(home-jndi-name="JNDInameOfTargetEJB" |

 ejb-link="RelativeNameOfTargetEJB")¹

Attributes

home-jndi-name

ejb-link

Remarks

The following rules apply to this annotation's use:

The target EJB must be deployed in WebLogic Server in the same domain as WebLogic Workshop project containing the EJB control.

Related Topics

EJB Control