This figure shows the architecture of the BRM JCA Resource Adapter. When a J2EE-compliant application sends a request to the application server, the Business Process Execution Language (BPEL) process on the application server routes the request to the adapter on the application framework (AF). When the adapter receives the request, it retrieves the opcode to call from the interaction specification and converts the input XML into an input flist. The opcode processes the request and returns the result in an output flist to the adapter. The adapter then converts the opcode's output flist into output XML and stores it in the payload of the output XML record. The adapter connects to BRM by using internal connection pooling.