For application clients, EJB components, and Web applications, you can define resource reference properties. Resource references specify aliased JNDI names for database connections, JavaMail sessions, and URL factories used by the application code.
Resource reference properties are of the form:
res-ref1, res-ref2, ...
Where res-ref1, res-ref2, and so forth are of the form:
(description=desc,res-type=type,res-auth=auth, res-sharing-scope=sharing,res-link=link, res-ref-name=jndi-name)
Where:
desc is an optional comment describing how the entry is to be set.
type is the Java datatype of the reference, which is one of:
java.net.URL
javax.mail.Session
javax.sql.Datasource
auth is “Container” or “Application”.
sharing is “Shareable” or “Unshareable”.
link is:
For javax.sql.Datasource references, the name of the connection cache. The cache must be defined and allow access by name; in other words, the com.sybase.jaguar.conncache.cachebyname must be true.
For javax.mail.Session references, the SMTP mail server host name.
For java.net.URL references, the URL.
jndi-name is entry’s JNDI name, relative to the java:comp/env prefix.
com.sybase.jaguar.applicationclient.resource-ref, com.sybase.jaguar.component.resource-ref, com.sybase.jaguar.webapplication.resource-ref
Copyright © 2005. Sybase Inc. All rights reserved. |