| < Free Open Study > |
|
In this chapter, we discussed numerous aspects of resource handling and configuration for servlet applications, in relation to real-life application scenarios. We looked at:
Servlet initialization parameters and how they can be used to locate XML documents and directory entities
The use of XML files for servlet configuration
The use of XML and initialization parameters to implement a servlet that configures and registers a database connection factory at application startup
How to implement a generic servlet authentication framework that can be dynamically configured to work with different types of data stores, including LDAP and JDBC
How to persist servlet and session state, using relational databases and serialized Java objects
In the next chapter we will look at a new feature of the Servlet specification that allow us to add to the request and response processing within a web application - filters.
A |
---|
attributeAdded() method
authenticate() method
Authentication application
AuthenticationConfig class
AuthenticationServlet implementing
Authenticator interface
|
B |
---|
binding
|
C |
---|
classes
Config class
configuring framework
Context> element
contextInitialized() method
context-param> element
context-wide parameters
custom exceptions
|
D |
---|
Data Access Object pattern, 19
data binding
data servlet framework example
data source binding, 11
database connectivity
DatabaseAuthenticator
DatabaseAuthenticator class
DatabaseName> element
DatabasePassword> element
databases
DatabaseUser> element
DataSource objects
DataSource> element
DataSourceConfig class
DataSourceListener
DataSourceListener class
DataSourceListener context listener
DefaultContext> element
destroy() method
directory services, 2
|
E |
---|
elements
env-entry> element
externalization
|
F |
---|
forName() method, Class
|
G |
---|
getElementText() method
getInitParameter() method, ServletContext
getInitParameterNames() method, ServletContext
getResourceAsStream() method
Group class
|
H |
---|
HttpSession object
HttpSessionAttributeListener
HttpSessionListener
HttpSessionListener interface
|
I |
---|
init() method
initialization parameters
init-param> element
|
J |
---|
J2EE specification
JDBC (Java DataBase Connectivity)
JNDI (Java Naming and Directory Interface)
JNDI namespace, 9 JSP (JavaServer Pages)
|
L |
---|
LDAP (Lightweight Directory Access Protocol)
LdapAuthenticator class
LdapConfig class
|
M |
---|
methods
MySQL
MySQL JDBC driver
|
N |
---|
naming services, 2 |
O |
---|
Oracle implementation
Oracle JDBC drivers
|
P |
---|
param-value> element
persistent resources
persisting session state example, 40
|
R |
---|
readResource() method
readSerialize() method
readSerialized() method
references to web sites
relational databases see databases. Request filter
Requester class
resource binding
resource-env-ref> element
ResourceParams> element
resource-ref> element
res-ref-name> element
|
S |
---|
Serializable interface, java.io
ServerName> element
ServerPort> element
servlet initialization parameters, 4
servlet persistence, 35
servlet XML configuration, 6
ServletContextListener
ServletContextListener interface
servlets
servlet-specific parameters
Session listener
session state
session-timeout> element
SQL implementation
standard resource factories
|
T |
---|
Tomcat
Tyrex implementation, web site, 12 |
U |
---|
User class
|
W |
---|
writeSerialized() method
|
X |
---|
XML (eXtensible Markup Language), 3
|
| < Free Open Study > |
|