<?xml version="1.0" encoding="UTF-8"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.   
-->
<chapter id="architecture">
  <title>How does Slice work?</title>
  <section id="openjpa_architecture">
    <title>OpenJPA Architecture</title>
    <para>
    OpenJPA is built on sound architectural principles. Its core components 
    communicate via well-designed interfaces and respects which layer of
    processing they belong. The object management kernel does not assume any
    specific nature of data storage system or user-level APIs. 
    </para>
  </section>
  
  <section id="openjpa_plugin_framework">
    <title>OpenJPA Plug-in Framework</title>
    <para>
    Every major component of the architecture is pluggable.
    </para> 
  </section>
  
  <section id="design_goals">
    <title>Design Goals</title>
    <para>
    Make minimal or no change to OpenJPA code.
    </para>
    <para>
    Make it user-friendly
    </para>
  </section>
  
  <section id="design_challenges">
    <title>What is critical design?</title>
    <para>
    Must get in-memory instances from different slices within the same 
    persistence context.
    </para>
    <para>
    Loaded instance must remember which slice it originated from.
    </para>
  </section>
  
  <section id="distributed_transation">
    <title>Distributed Transaction</title>
    <para>
    Who will manage the distributed transaction across the slices?
    OpenJPA runtime behaves more like a Resource Manager in distributed 
    transaction i.e. it is a participant rather than a controller of transaction.
    It depends on external Transaction Manager to manage global transaction.
    </para>
  </section>
  
  <section id="distributed_template_pattern">
    <title>Distributed Template Pattern</title>
  </section>
  
  &homer;
  
</chapter>
  