Application clients, EJB components, and Web applications allow you to define EJB references that specify aliased JNDI names used in the application, component, or servlet code. These aliases allow the code to run on servers where the referenced components use a different JNDI name.
EJB references have the form:
(description=desc,ejb-link=,jaguar-link=jndi-name,home=home, ejb-ref-type=type,ejb-ref-name=alias,remote=remote)
Where:
desc is an optional comment describing how the reference is used.
jndi-name is the JNDI name of the referenced component, specified as the component’s com.sybase.jaguar.component.bind.naming property.
home is the Java home interface name.
type is “Session” for session beans and “Entity” for entity beans.
alias is the aliased JNDI name
used in the code. Enter the part of the JNDI name that begins with ejb/
.
For example, if your code refers to java:comp/env/ejb/AcctBean,
enter ejb/AcctBean
.
remote is the Java remote interface name.
Use an EJB reference property to invoke beans (local or remote) through their remote interfaces. Use an EJB local reference property to invoke local beans through their local interfaces.
EJB reference properties, com.sybase.jaguar.applicationclient.ejb-ref, com.sybase.jaguar.component.ejb-ref, com.sybase.jaguar.webapplication.ejb-ref
Copyright © 2005. Sybase Inc. All rights reserved. |