JBoss Admin Development Guide

JBoss 3.2.6

Table of Contents

About Open Source
About JBoss
1. JBoss: A Full J2EE Implementation with JMX
2. What this Book Covers
1. Installing and Building the JBoss Server
1.1. Getting the Binary Files
1.1.1. Prerequisites
1.1.2. Installing the Binary Package Directory Structure
1.1.3. The Default Server Configuration File Set
1.2. Basic Installation Testing
1.3. Booting from a Network Server
1.4. Building the Server from Source Code
1.4.1. Accessing the JBoss CVS Repositories at SourceForge
1.4.2. Understanding CVS
1.4.3. Anonymous CVS Access
1.4.4. Obtaining a CVS Client
1.4.5. Building the JBoss 3.2.6 Distribution Using the Source Code
1.4.6. Building the JBoss 3.2.6 Distribution Using the CVS Source Code
1.4.7. An Overview of the JBoss CVS Source Tree
1.4.8. Using the JBossTest unit testsuite
2. The JBoss JMX Microkernel
2.1. JMX
2.1.1. An Introduction to JMX Instrumentation Level Agent Level Distributed Services Level JMX Component Overview
2.2. JBoss JMX Implementation Architecture
2.2.1. The JBoss ClassLoader Architecture
2.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
2.2.3. JBoss XMBeans Descriptors The Management Class The Constructors The Attributes The Operations Notifications
2.3. Connecting to the JMX Server
2.3.1. Inspecting the Server - the JMX Console Web Application Securing the JMX Console
2.3.2. Connecting to JMX Using RMI
2.3.3. Command Line Access to JMX Connecting twiddle to a Remote Server Sample twiddle Command Usage
2.3.4. Connecting to JMX Using Any Protocol
2.4. Using JMX as a Microkernel
2.4.1. The Startup Process
2.4.2. JBoss MBean Services The SARDeployer MBean The Service Life Cycle Interface The ServiceController MBean Specifying Service Dependencies Identitifying Unsatisfied Dependencies Hot Deployment of Components, the URLDeploymentScanner
2.4.3. Writing JBoss MBean Services A Standard MBean Example XMBean Examples
2.4.4. Deployment Ordering and Dependencies
2.5. JBoss Deployer Architecture
2.5.1. Deployers and ClassLoaders
2.6. Exposing MBean Events via SNMP
2.6.1. The SNMP Adaptor Service
2.6.2. The Event to Trap Service
2.7. Remote Access to Services, Detached Invokers
2.7.1. A Detached Invoker Example, the MBeanServer Invoker Adaptor Service
2.7.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
3. Naming on JBoss
3.1. An Overview of JNDI
3.1.1. The JNDI API Names Contexts
3.1.2. J2EE and JNDI - The Application Component Environment ENC Usage Conventions
3.2. The JBossNS Architecture
3.2.1. The Naming InitialContext Factories Naming Discovery in Clustered Environments The HTTP InitialContext Factory Implementation The Login InitialContext Factory Implementation
3.2.2. Accessing JNDI over HTTP
3.2.3. Accessing JNDI over HTTPS
3.2.4. Securing Access to JNDI over HTTP
3.2.5. Securing Access to JNDI with a Read-Only Unsecured Context
3.2.6. Additional Naming MBeans org.jboss.naming.ExternalContext MBean The org.jboss.naming.NamingAlias MBean The org.jboss.naming.JNDIView MBean
4. Transactions on JBoss
4.1. Transaction/JTA Overview
4.1.1. Pessimistic and optimistic locking
4.1.2. The components of a distributed transaction
4.1.3. The two-phase XA protocol
4.1.4. Heuristic exceptions
4.1.5. Transaction IDs and branches
4.2. JBoss Transaction Internals
4.2.1. Adapting a Transaction Manager to JBoss
4.2.2. The Default Transaction Manager org.jboss.tm.XidFactory
4.2.3. UserTransaction Support
5. EJBs on JBoss
5.1. The EJB Client Side View
5.1.1. Specifying the EJB Proxy Configuration
5.2. The EJB Server Side View
5.2.1. Detached Invokers - The Transport Middlemen
5.2.2. The HA JRMPInvoker - Clustered RMI/JRMP Transport
5.2.3. The HA HttpInvoker - Clustered RMI/HTTP Transport
5.3. The EJB Container
5.3.1. EJBDeployer MBean Verifying EJB deployments Deploying EJBs Into Containers Container configuration information
5.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 org.jboss.ejb.StatefulSessionPersistenceManager
5.4. Entity Bean Locking and Deadlock Detection
5.4.1. Why JBoss Needs Locking
5.4.2. Entity Bean Lifecycle
5.4.3. Default Locking Behavior
5.4.4. Pluggable Interceptors and Locking Policy
5.4.5. Deadlock Dedlock Detection Catching ApplicationDeadlockException Viewing Lock Information
5.4.6. Advanced Configurations and Optimizations Short-lived Transactions Ordered Access Read-Only Beans Explicitly Defining Read-Only Methods Instance Per Transaction Policy
5.4.7. Running Within a Cluster
5.4.8. Troubleshooting Locking Behavior Not Working IllegalStateException Hangs and Transaction Timeouts
6. Messaging on JBoss
6.1. JMS Examples
6.1.1. A Point-To-Point Example
6.1.2. A Pub-Sub Example
6.1.3. A Pub-Sub With Durable Topic Example
6.1.4. A Point-To-Point With MDB Example
6.2. JBoss Messaging Overview
6.2.1. Invocation Layer RMI IL (deprecated) OIL IL (deprecated) UIL IL (deprecated) UIL2 IL JVM IL HTTP IL
6.2.2. Security Manager
6.2.3. Destination Manager
6.2.4. Message Cache
6.2.5. State Manager
6.2.6. Persistence Manager File PM Rolling Logged PM JDBC2 PM
6.2.7. Destinations Queues Topics
6.3. JBoss Messaging Configuration and MBeans
6.3.1. org.jboss.mq.il.jvm.JVMServerILService
6.3.2. org.jboss.mq.il.rmi.RMIServerILService (deprecated)
6.3.3. org.jboss.mq.il.oil.OILServerILService (deprecated)
6.3.4. org.jboss.mq.il.uil.UILServerILService (deprecated)
6.3.5. org.jboss.mq.il.uil2.UILServerILService Configuring ILs for SSL JMS client properties for the UIL2 transport
6.3.6. org.jboss.mq.il.http.HTTPServerILService
6.3.7. org.jboss.mq.server.jmx.Invoker
6.3.8. org.jboss.mq.server.jmx.InterceptorLoader
6.3.9. org.jboss.mq.sm.file.DynamicStateManager
6.3.10. org.jboss.mq.security.SecurityManager
6.3.11. org.jboss.mq.server.jmx.DestinationManager
6.3.12. org.jboss.mq.server.MessageCache
6.3.13. org.jboss.mq.pm.file.CacheStore
6.3.14. org.jboss.mq.pm.file.PersistenceManager
6.3.15. org.jboss.mq.pm.rollinglogged.PersistenceManager
6.3.16. org.jboss.mq.pm.jdbc2.PersistenceManager
6.3.17. Destination MBeans org.jboss.mq.server.jmx.Queue org.jboss.mq.server.jmx.Topic
6.3.18. Administration Via JMX Creating Queues At Runtime Creating Topics At Runtime Managing a JBossMQ User IDs at Runtime
6.4. Specifying the MDB JMS Provider
6.4.1. org.jboss.jms.jndi.JMSProviderLoader MBean
6.4.2. org.jboss.jms.asf.ServerSessionPoolLoader MBean
6.4.3. Integrating non-JBoss JMS Providers
7. Connectors on JBoss
7.1. JCA Overview
7.2. An Overview of the JBossCX Architecture
7.2.1. BaseConnectionManager2 MBean
7.2.2. RARDeployment MBean
7.2.3. JBossManagedConnectionPool MBean
7.2.4. CachedConnectionManager MBean
7.2.5. A Sample Skeleton JCA Resource Adaptor
7.3. Configuring JCA Adaptors
7.3.1. Configuring JDBC DataSources
7.3.2. Configuring Generic JCA Adaptors
7.3.3. Sample Configurations
8. Security on JBoss
8.1. J2EE Declarative Security Overview
8.1.1. Security References
8.1.2. Security Identity
8.1.3. Security roles
8.1.4. EJB method permissions
8.1.5. Web Content Security Constraints
8.1.6. Enabling Declarative Security in JBoss
8.2. An Introduction to JAAS
8.2.1. What is JAAS? The JAAS Core Classes
8.3. The JBoss Security Model
8.3.1. Enabling Declarative Security in JBoss Revisited
8.4. The JBoss Security Extension Architecture
8.4.1. How the JaasSecurityManager Uses JAAS
8.4.2. The JaasSecurityManagerService MBean
8.4.3. The JaasSecurityDomain MBean
8.4.4. An XML JAAS Login Configuration MBean
8.4.5. The JAAS Login Configuration Management MBean
8.4.6. Using and Writing JBossSX Login Modules org.jboss.security.auth.spi.IdentityLoginModule org.jboss.security.auth.spi.UsersRolesLoginModule org.jboss.security.auth.spi.LdapLoginModule org.jboss.security.auth.spi.DatabaseServerLoginModule BaseCertLoginModule org.jboss.security.auth.spi.ProxyLoginModule org.jboss.security.auth.spi.RunAsLoginModule org.jboss.security.ClientLoginModule
8.4.7. Writing Custom Login Modules Support for the Subject Usage Pattern A Custom LoginModule Example
8.4.8. The DynamicLoginConfig service
8.5. The Secure Remote Password (SRP) Protocol
8.5.1. Providing Password Information for SRP
8.5.2. Inside of the SRP algorithm An SRP example
8.6. Running JBoss with a Java 2 security manager
8.7. Using SSL with JBoss using JSSE
8.8. Configuring JBoss for use Behind a Firewall
8.9. How to Secure the JBoss Server
8.9.1. The jmx-console.war
8.9.2. The web-console.war
8.9.3. The http-invoker.sar
8.9.4. The jmx-invoker-adaptor-server.sar
9. Integrating Servlet Containers
9.1. The AbstractWebContainer Class
9.1.1. The AbstractWebContainer Contract
9.1.2. Creating an AbstractWebContainer Subclass Use the Thread Context Class Loader Integrate Logging Using log4j Delegate web container authentication and authorization to JBossSX
9.2. JBoss/Tomcat-5 bundle notes
9.2.1. The Tomcat server.xml file Connector Engine Host DefaultContext Logger Valve
9.2.2. Using SSL with the JBoss/Tomcat bundle
9.2.3. Setting up Virtual Hosts
9.2.4. Serving Static Content
9.2.5. Using Apache with the Tomcat
9.2.6. Using Clustering
10. MBean Services Miscellany
10.1. System Properties Management
10.2. Property Editor Management
10.3. Services Binding Management
10.3.1. Running Two JBoss Instances
10.4. Scheduling Tasks
10.4.1. org.jboss.varia.scheduler.Scheduler
10.5. The JBoss Logging Framework
10.5.1. org.jboss.logging.Log4jService
10.6. RMI Dynamic Class Loading
10.6.1. org.jboss.web.WebService
11. The CMP Engine
11.1. Getting Started
11.1.1. Example Code
11.1.2. Tests
11.1.3. Read-ahead
11.2. The jbosscmp-jdbc Structure
11.3. Entity Beans
11.3.1. Entity Mapping
11.4. CMP-Fields
11.4.1. CMP-Field Abstract Accessors
11.4.2. CMP-Field Declaration
11.4.3. CMP-Field Column Mapping
11.4.4. Read-only Fields
11.4.5. Auditing Entity Access
11.4.6. Dependent Value Classes (DVCs)
11.5. Container Managed Relationships
11.5.1. CMR-Field Abstract Accessors
11.5.2. Relationship Declaration
11.5.3. Relationship Mapping Relationship Role Mapping Foreign Key Mapping Relation-table Mapping
11.6. Queries
11.6.1. Finder and ejbSelect Declaration
11.6.2. EJB-QL Declaration
11.6.3. Overriding the EJB-QL to SQL Mapping
11.6.4. JBossQL
11.6.5. DynamicQL
11.6.6. DeclaredSQL Parameters
11.6.7. EJBQL 2.1 and SQL92 queries
11.6.8. BMP Custom Finders
11.7. Optimized Loading
11.7.1. Loading Scenario
11.7.2. Load Groups
11.7.3. Read-ahead on-find on-load none
11.8. Loading Process
11.8.1. Commit Options
11.8.2. Eager-loading Process
11.8.3. Lazy loading Process Relationships
11.8.4. Lazy loading result sets
11.9. Transactions
11.10. Optimistic Locking
11.11. Entity Commands and Primary Key Generation
11.11.1. Existing Entity Commands
11.12. Defaults
11.12.1. A sample jbosscmp-jdbc.xml defaults declaration
11.13. Datasource Customization
11.13.1. Function Mapping
11.13.2. Type Mapping
11.13.3. User Type Mappings
A. The JBoss Group and Our LGPL License
A.1. About The JBoss Group
A.2. The GNU Lesser General Public License (LGPL)
B. Book Example Installation