# About Business Components, XML, and Packages

The Business Component framework represents each Business Component using a combination of XML and Java code. The XML code defines the metadata representing declarative settings and features of the object. The Java code implements the object's behavior.

Business Components reside in packages using semantics identical to packages in Java. By convention, the files `DeptView.xml` and `DeptViewImpl.java` (shown in the figure below) are in the package `d2ePackage` because they reside in the directory `d2ePackage`.

Each Java file records the package to which it belongs by including code like the following:

    package d2ePackage;
    ...
      public class DeptViewImpl extends oracle.jbo.server.ViewObjectImpl {
      ...
      }

Similarly, each XML file records the package to which it belongs by including code like the following:

    <ViewObject
       Name="DeptView"
       ...
    ComponentClass="d2ePackage.DeptViewImpl">