The JBoss 4 Application Server J2EE Reference

JBoss AS 4.0.5

Release 2

Table of Contents

1. The JBoss JMX Microkernel
1.1. An Introduction to JMX
1.1.1. Instrumentation Level
1.1.2. Agent Level
1.1.3. Distributed Services Level
1.1.4. JMX Component Overview Managed Beans or MBeans Notification Model MBean Metadata Classes MBean Server Agent Services
1.2. JBoss JMX Implementation Architecture
1.2.1. The JBoss ClassLoader Architecture
1.2.2. Class Loading and Types in Java ClassCastExceptions - I'm Not Your Type IllegalAccessException - Doing what you should not LinkageErrors - Making Sure You Are Who You Say You Are Inside the JBoss Class Loading Architecture
1.2.3. JBoss XMBeans Descriptors The Management Class The Constructors The Attributes The Operations Notifications
1.3. Connecting to the JMX Server
1.3.1. Inspecting the Server - the JMX Console Web Application Securing the JMX Console
1.3.2. Connecting to JMX Using RMI
1.3.3. Command Line Access to JMX Connecting twiddle to a Remote Server Sample twiddle Command Usage
1.3.4. Connecting to JMX Using Any Protocol
1.4. Using JMX as a Microkernel
1.4.1. The Startup Process
1.4.2. JBoss MBean Services The SARDeployer MBean The Service Life Cycle Interface The ServiceController MBean Specifying Service Dependencies Identifying Unsatisfied Dependencies Hot Deployment of Components, the URLDeploymentScanner
1.4.3. Writing JBoss MBean Services A Standard MBean Example XMBean Examples
1.4.4. Deployment Ordering and Dependencies
1.5. JBoss Deployer Architecture
1.5.1. Deployers and ClassLoaders
1.6. Remote Access to Services, Detached Invokers
1.6.1. A Detached Invoker Example, the MBeanServer Invoker Adaptor Service
1.6.2. Detached Invoker Reference The JRMPInvoker - RMI/JRMP Transport The PooledInvoker - RMI/Socket Transport The IIOPInvoker - RMI/IIOP Transport The JRMPProxyFactory Service - Building Dynamic JRMP Proxies The HttpInvoker - RMI/HTTP Transport The HA JRMPInvoker - Clustered RMI/JRMP Transport The HA HttpInvoker - Clustered RMI/HTTP Transport HttpProxyFactory - Building Dynamic HTTP Proxies Steps to Expose Any RMI Interface via HTTP
2. Naming on JBoss
2.1. An Overview of JNDI
2.1.1. Names
2.1.2. Contexts Obtaining a Context using InitialContext
2.2. The JBossNS Architecture
2.3. The Naming InitialContext Factories
2.3.1. The standard naming context factory
2.3.2. The org.jboss.naming.NamingContextFactory
2.3.3. Naming Discovery in Clustered Environments
2.3.4. The HTTP InitialContext Factory Implementation
2.3.5. The Login InitialContext Factory Implementation
2.3.6. The ORBInitialContextFactory
2.4. JNDI over HTTP
2.4.1. Accessing JNDI over HTTP
2.4.2. Accessing JNDI over HTTPS
2.4.3. Securing Access to JNDI over HTTP
2.4.4. Securing Access to JNDI with a Read-Only Unsecured Context
2.5. Additional Naming MBeans
2.5.1. JNDI Binding Manager
2.5.2. The org.jboss.naming.NamingAlias MBean
2.5.3. org.jboss.naming.ExternalContext MBean
2.5.4. The org.jboss.naming.JNDIView MBean
2.6. J2EE and JNDI - The Application Component Environment
2.6.1. ENC Usage Conventions Environment Entries EJB References EJB References with jboss.xml and jboss-web.xml EJB Local References Resource Manager Connection Factory References Resource Manager Connection Factory References with jboss.xml and jboss-web.xml Resource Environment References Resource Environment References and jboss.xml, jboss-web.xml
3. Transactions on JBoss
3.1. Transaction/JTA Overview
3.1.1. Pessimistic and optimistic locking
3.1.2. The components of a distributed transaction
3.1.3. The two-phase XA protocol
3.1.4. Heuristic exceptions
3.1.5. Transaction IDs and branches
3.2. JBoss Transaction Internals
3.2.1. Adapting a Transaction Manager to JBoss
3.2.2. The Default Transaction Manager
3.2.3. UserTransaction Support
4. EJBs on JBoss
4.1. The EJB Client Side View
4.1.1. Specifying the EJB Proxy Configuration
4.2. The EJB Server Side View
4.2.1. Detached Invokers - The Transport Middlemen
4.2.2. The HA JRMPInvoker - Clustered RMI/JRMP Transport
4.2.3. The HA HttpInvoker - Clustered RMI/HTTP Transport
4.3. The EJB Container
4.3.1. EJBDeployer MBean Verifying EJB deployments Deploying EJBs Into Containers Container configuration information
4.3.2. Container Plug-in Framework org.jboss.ejb.ContainerPlugin org.jboss.ejb.Interceptor org.jboss.ejb.InstancePool org.jboss.ebj.InstanceCache org.jboss.ejb.EntityPersistenceManager The org.jboss.ejb.EntityPersistenceStore interface org.jboss.ejb.StatefulSessionPersistenceManager
4.4. Entity Bean Locking and Deadlock Detection
4.4.1. Why JBoss Needs Locking
4.4.2. Entity Bean Lifecycle
4.4.3. Default Locking Behavior
4.4.4. Pluggable Interceptors and Locking Policy
4.4.5. Deadlock Deadlock Detection Catching ApplicationDeadlockException Viewing Lock Information
4.4.6. Advanced Configurations and Optimizations Short-lived Transactions Ordered Access Read-Only Beans Explicitly Defining Read-Only Methods Instance Per Transaction Policy
4.4.7. Running Within a Cluster
4.4.8. Troubleshooting Locking Behavior Not Working IllegalStateException Hangs and Transaction Timeouts
4.5. EJB Timer Configuration
5. Messaging on JBoss
5.1. JMS Examples
5.1.1. A Point-To-Point Example
5.1.2. A Pub-Sub Example
5.1.3. A Pub-Sub With Durable Topic Example
5.1.4. A Point-To-Point With MDB Example
5.2. JBoss Messaging Overview
5.2.1. Invocation Layer
5.2.2. Security Manager
5.2.3. Destination Manager
5.2.4. Message Cache
5.2.5. State Manager
5.2.6. Persistence Manager
5.2.7. Destinations Queues Topics
5.3. JBoss Messaging Configuration and MBeans
5.3.2. Configuring UIL2 for SSL JMS client properties for the UIL2 transport
5.3.11. Destination MBeans
5.4. Specifying the MDB JMS Provider
5.4.1. org.jboss.jms.jndi.JMSProviderLoader MBean
5.4.2. org.jboss.jms.asf.ServerSessionPoolLoader MBean
5.4.3. Integrating non-JBoss JMS Providers
6. Connectors on JBoss
6.1. JCA Overview
6.2. An Overview of the JBossCX Architecture
6.2.1. BaseConnectionManager2 MBean
6.2.2. RARDeployment MBean
6.2.3. JBossManagedConnectionPool MBean
6.2.4. CachedConnectionManager MBean
6.2.5. A Sample Skeleton JCA Resource Adaptor
6.3. Configuring JDBC DataSources
6.4. Configuring Generic JCA Adaptors
7. Security on JBoss
7.1. J2EE Declarative Security Overview
7.1.1. Security References
7.1.2. Security Identity
7.1.3. Security roles
7.1.4. EJB method permissions
7.1.5. Web Content Security Constraints
7.1.6. Enabling Declarative Security in JBoss
7.2. An Introduction to JAAS
7.2.1. What is JAAS? The JAAS Core Classes
7.3. The JBoss Security Model
7.3.1. Enabling Declarative Security in JBoss Revisited
7.4. The JBoss Security Extension Architecture
7.4.1. How the JaasSecurityManager Uses JAAS
7.4.2. The JaasSecurityManagerService MBean
7.4.3. The JaasSecurityDomain MBean
7.5. Defining Security Domains
7.5.1. Loading Security Domains
7.5.2. The DynamicLoginConfig service
7.5.3. Using JBoss Login Modules Password Stacking Password Hashing Unauthenticated Identity UsersRolesLoginModule LdapLoginModule DatabaseServerLoginModule BaseCertLoginModule IdentityLoginModule RunAsLoginModule ClientLoginModule
7.5.4. Writing Custom Login Modules Support for the Subject Usage Pattern A Custom LoginModule Example
7.6. The Secure Remote Password (SRP) Protocol
7.6.1. Providing Password Information for SRP
7.6.2. Inside of the SRP algorithm An SRP example
7.7. Running JBoss with a Java 2 security manager
7.8. Using SSL with JBoss using JSSE
7.9. Configuring JBoss for use Behind a Firewall
7.10. How to Secure the JBoss Server
7.10.1. The JMX Console
7.10.2. The Web Console
7.10.3. The HTTP Invokers
7.10.4. The JMX Invoker
8. Additional Services
8.1. Memory and Thread Monitoring
8.2. The Log4j Service
8.3. System Properties Management
8.4. Property Editor Management
8.5. Services Binding Management
8.5.1. AttributeMappingDelegate
8.5.2. XSLTConfigDelegate
8.5.3. XSLTFileDelegate
8.5.4. The Sample Bindings File
8.6. RMI Dynamic Class Loading
8.7. Scheduling Tasks
8.7.1. org.jboss.varia.scheduler.Scheduler
8.8. The Timer Service
8.9. The BarrierController Service
8.10. Exposing MBean Events via SNMP
A. Book Example Installation