org.apache.beehive.controls.system.ejb
Annotation Type EJBControl.EJBHome
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public static @interface EJBControl.EJBHome
EJBHome specifies the target EJB's home interface for the EJB control using the following attributes:
- jndiName specifies the JNDI name of the target EJB's home interface
(e.g. EJBNameHome). This value may also be an URL using the "JNDI:"
protocol (e.g. jndi://username:password@host:port/EJBNameHome).
- ejbLink specifies the name of the target EJB using the application
relative path to the EJB JAR. This syntax causes the runtime to
use an application scoped name when locating the referenced EJB.
The naming syntax is jarfile.jar#ejb-name (e.g. ejbModule.jar#HelloBean).
An EJB Control in a web application would reference an EJB type using the
fully qualified name of the control interface with the suffix "jcx". For example,
a control of type controls.HelloEjbControl
would resolve the EJB using
the following entry in web.xml:
<ejb-ref>
<ejb-ref-name>controls.HelloEjbControl.jcx</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>ejbs.HelloBeanHome</home>
<remote>ejbs.HelloBeanRemote</remote>
<ejb-link>ejbModule.jar#HelloBean</ejb-link>
</ejb-ref>
jndiName
public abstract String jndiName
- Default:
- ""
ejbLink
public abstract String ejbLink
- Default:
- ""