Resources (JNDI, JCA)
Resin 3.0

Features
Installation
Configuration
Web Applications
IOC/AOP
Resources
JSP
Quercus
Servlets and Filters
Databases
Admin (JMX)
CMP
EJB
Amber
EJB 3.0
Security
XML and XSLT
XTP
JMS
Performance
Protocols
Third-party
Troubleshooting/FAQ

Library
Tutorials
Resource FAQ
IOC/AOP
Resin 3.0
Library

Resource Library
CronResource

CronResource executes application Work tasks at configured intervals.

RMI Resource

Resin supports the use of RMI with the resource class .

Resource Tutorials
A Simple Resource Bean

Resources are beans configured in the resin.conf or web.xml and stored in JNDI.

Dependency Injection for Resources

The Dependency Injection pattern simplifies application code, and increases configuration flexibility by deferring component configuration and assembly to the container. Resin calls setters on the configured objects to assemble the resource dependencies.

A Resource with JCA Lifecycle

Resources can receive lifecycle events by implementing javax.resource.spi.ResourceAdapter.

Resource Thread Management

Resources using threads will want to use JCA's work management API. The work management API lets Resin manage threads for the resource rather than forcing the resource to manage its own threads. Since Resin is in a better position to manager threads, using the Work API is not only a convenience, but is a cleaner and more reliable implementation.

Resource Timers

Resources can use the JCA timer capability to manage periodic tasks. The timers use the familiar java.util.Timer , providing extra support for the environment lifecycle.

CronResource

CronResource is a convenient resource which schedules application Work tasks at configurable intervals.

Connector

This is an advanced Connector tutorial for those interested in implementing Connector drivers or who just want to understand the inner workings. Connectors are a generalization of the JDBC DataSource, supporting pooling and transactions for any Connector following the interface.

Application configuration files using a custom JNDI object

Applications often need to read, and possibly write, configuration files.

Resources/JNDI/JCA FAQ


IOC/AOP
Resin 3.0
Library
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.