[[integration.appendix]] = Appendix [[integration.appendix.xsd-schemas]] == XML Schemas This part of the appendix lists XML schemas related to integration technologies. [[integration.appendix.xsd-schemas-jee]] === The `jee` Schema The `jee` elements deal with issues related to Jakarta EE (Enterprise Edition) configuration, such as looking up a JNDI object and defining EJB references. To use the elements in the `jee` schema, you need to have the following preamble at the top of your Spring XML configuration file. The text in the following snippet references the correct schema so that the elements in the `jee` namespace are available to you: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jee-jndi-lookup]] ==== (simple) The following example shows how to use JNDI to look up a data source without the `jee` schema: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- The following example shows how to use JNDI to look up a data source with the `jee` schema: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jee-jndi-lookup-environment-single]] ==== `` (with Single JNDI Environment Setting) The following example shows how to use JNDI to look up an environment variable without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- pong ---- The following example shows how to use JNDI to look up an environment variable with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ping=pong ---- [[integration.appendix.xsd-schemas-jee-jndi-lookup-environment-multiple]] ==== `` (with Multiple JNDI Environment Settings) The following example shows how to use JNDI to look up multiple environment variables without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- song pong ---- The following example shows how to use JNDI to look up multiple environment variables with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- sing=song ping=pong ---- [[integration.appendix.xsd-schemas-jee-jndi-lookup-complex]] ==== `` (Complex) The following example shows how to use JNDI to look up a data source and a number of different properties without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- The following example shows how to use JNDI to look up a data source and a number of different properties with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jee-local-slsb]] ==== `` (Simple) The `` element configures a reference to a local EJB Stateless Session Bean. The following example shows how to configures a reference to a local EJB Stateless Session Bean without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- The following example shows how to configures a reference to a local EJB Stateless Session Bean with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jee-local-slsb-complex]] ==== `` (Complex) The `` element configures a reference to a local EJB Stateless Session Bean. The following example shows how to configures a reference to a local EJB Stateless Session Bean and a number of properties without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- The following example shows how to configures a reference to a local EJB Stateless Session Bean and a number of properties with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jee-remote-slsb]] ==== The `` element configures a reference to a `remote` EJB Stateless Session Bean. The following example shows how to configures a reference to a remote EJB Stateless Session Bean without `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- The following example shows how to configures a reference to a remote EJB Stateless Session Bean with `jee`: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-jms]] === The `jms` Schema The `jms` elements deal with configuring JMS-related beans, such as Spring's <>. These elements are detailed in the section of the <> entitled <>. See that chapter for full details on this support and the `jms` elements themselves. In the interest of completeness, to use the elements in the `jms` schema, you need to have the following preamble at the top of your Spring XML configuration file. The text in the following snippet references the correct schema so that the elements in the `jms` namespace are available to you: [source,xml,indent=0,subs="verbatim,quotes"] ---- ---- [[integration.appendix.xsd-schemas-context-mbe]] === Using `` This element is detailed in <>. [[integration.appendix.xsd-schemas-cache]] === The `cache` Schema You can use the `cache` elements to enable support for Spring's `@CacheEvict`, `@CachePut`, and `@Caching` annotations. It it also supports declarative XML-based caching. See <> and <> for details. To use the elements in the `cache` schema, you need to have the following preamble at the top of your Spring XML configuration file. The text in the following snippet references the correct schema so that the elements in the `cache` namespace are available to you: [source,xml,indent=0,subs="verbatim,quotes"] ---- ----