EJB components and Web applications allow you to define EJB local references that specify aliased JNDI names used in code to look up EJB components that support local invocations. These aliases allow the code to run on servers where the referenced components use a different JNDI name.
EJB local references have the form:
(description=desc,ejb-link=,jaguar-link=jndi-name, local-home=local-home,ejb-ref-type=type, ejb-ref-name=alias,local=local)
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.
local-home is the Java local 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
.
local is the Java local interface name.
Use an EJB local reference property to invoke local beans through their local interfaces. Use an EJB reference property to invoke beans (local or remote) through their remote interfaces.
EJB reference properties, com.sybase.jaguar.component.ejb-local-ref, com.sybase.jaguar.webapplication.ejb-local-ref
Copyright © 2005. Sybase Inc. All rights reserved. |