1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
3 <xsd:schema xmlns="http://www.springframework.org/schema/jee"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 xmlns:beans="http://www.springframework.org/schema/beans"
6 xmlns:tool="http://www.springframework.org/schema/tool"
7 targetNamespace="http://www.springframework.org/schema/jee"
8 elementFormDefault="qualified"
9 attributeFormDefault="unqualified">
11 <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"/>
12 <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-2.0.xsd"/>
15 <xsd:documentation><![CDATA[
16 Defines the elements used to configure various Java EE (J2EE) related
17 technologies such as JNDI lookups and EJBs.
18 ]]></xsd:documentation>
21 <xsd:element name="jndi-lookup">
23 <xsd:documentation source="java:org.springframework.jndi.JndiObjectFactoryBean"><![CDATA[
24 Exposes an object reference via a JNDI lookup.
25 ]]></xsd:documentation>
29 <xsd:extension base="jndiLocatingType">
30 <xsd:attribute name="cache" type="xsd:boolean">
32 <xsd:documentation><![CDATA[
33 Controls whether the object returned from the JNDI lookup is cached
34 after the first lookup.
35 ]]></xsd:documentation>
38 <xsd:attribute name="expected-type" type="xsd:string">
40 <xsd:documentation source="java:java.lang.Class"><![CDATA[
41 The type that the located JNDI object is supposed to be assignable
43 ]]></xsd:documentation>
46 <xsd:attribute name="lookup-on-startup" type="xsd:boolean">
48 <xsd:documentation><![CDATA[
49 Controls whether the JNDI lookup is performed immediately on startup
50 (if true, the default), or on first access (if false).
51 ]]></xsd:documentation>
54 <xsd:attribute name="proxy-interface" type="xsd:string">
56 <xsd:documentation source="java:java.lang.Class"><![CDATA[
57 The proxy interface to use for the JNDI object.
59 Needs to be specified because the actual JNDI object type is not
60 known in advance in case of a lazy lookup.
62 Typically used in conjunction with "lookupOnStartup"=false and/or
64 ]]></xsd:documentation>
67 <tool:expected-type type="java.lang.Class"/>
77 <xsd:element name="local-slsb" type="ejbType">
79 <xsd:documentation source="java:org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean"><![CDATA[
80 Exposes a reference to a local EJB Stateless SessionBean.
81 ]]></xsd:documentation>
85 <xsd:element name="remote-slsb">
87 <xsd:documentation source="java:org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"><![CDATA[
88 Exposes a reference to a remote EJB Stateless SessionBean.
89 ]]></xsd:documentation>
93 <xsd:extension base="ejbType">
94 <xsd:attribute name="home-interface" type="xsd:string">
96 <xsd:documentation source="java:java.lang.Class"><![CDATA[
97 The home interface that will be narrowed to before performing
98 the parameterless SLSB create() call that returns the actual
100 ]]></xsd:documentation>
103 <xsd:attribute name="refresh-home-on-connect-failure" type="xsd:boolean">
105 <xsd:documentation><![CDATA[
106 Controls whether to refresh the EJB home on connect failure.
108 Can be turned on to allow for hot restart of the EJB server.
109 If a cached EJB home throws an RMI exception that indicates a
110 remote connect failure, a fresh home will be fetched and the
111 invocation will be retried.
112 ]]></xsd:documentation>
116 </xsd:complexContent>
121 <xsd:complexType name="jndiLocatingType" abstract="true">
123 <xsd:extension base="beans:identifiedType">
125 <xsd:element name="environment" minOccurs="0" maxOccurs="1">
127 <xsd:documentation><![CDATA[
128 The newline-separated, key-value pairs for the JNDI environment
129 (in standard Properties format, namely 'key=value' pairs)
130 ]]></xsd:documentation>
133 <xsd:restriction base="xsd:string"/>
137 <xsd:attribute name="environment-ref" type="environmentRefType">
139 <xsd:documentation><![CDATA[
140 A reference to JNDI environment properties, indicating the name of a
141 shared bean of type [java.util.Properties}.
142 ]]></xsd:documentation>
145 <xsd:attribute name="jndi-name" type="xsd:string" use="required">
147 <xsd:documentation><![CDATA[
148 The JNDI name to look up. This needs to be the fully-qualified JNDI
149 path unless the "resource-ref" attributes is set to "true" in which
150 case the prefix "java:comp/env/" will be prepended if applicable.
151 ]]></xsd:documentation>
154 <xsd:attribute name="resource-ref" type="xsd:boolean">
156 <xsd:documentation><![CDATA[
157 Controls whether the lookup occurs in a J2EE container, i.e. if the
158 prefix "java:comp/env/" needs to be added if the JNDI name doesn't
159 already contain it. Default is "false".
160 ]]></xsd:documentation>
164 </xsd:complexContent>
167 <xsd:complexType name="ejbType">
169 <xsd:extension base="jndiLocatingType">
170 <xsd:attribute name="lookup-home-on-startup" type="xsd:boolean">
172 <xsd:documentation><![CDATA[
173 Controls whether the lookup of the EJB home object is performed
174 immediately on startup (if true, the default), or on first access
176 ]]></xsd:documentation>
179 <xsd:attribute name="cache-home" type="xsd:boolean">
181 <xsd:documentation><![CDATA[
182 Controls whether the EJB home object is cached once it has been located.
183 On by default; turn this flag off to always reobtain fresh home objects.
184 ]]></xsd:documentation>
187 <xsd:attribute name="business-interface" type="xsd:string" use="required">
189 <xsd:documentation source="java:java.lang.Class"><![CDATA[
190 The business interface of the EJB being proxied.
191 ]]></xsd:documentation>
195 </xsd:complexContent>
198 <xsd:simpleType name="environmentRefType">
201 <tool:annotation kind="ref">
202 <tool:expected-type type="java.util.Properties"/>
206 <xsd:union memberTypes="xsd:string"/>