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-3.0.xsd"/>
12 <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.0.xsd"/>
15 <xsd:documentation><![CDATA[
16 Defines configuration elements for access to traditional Java EE components
17 such as JNDI resources and EJB session beans.
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" default="true">
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" default="true">
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"/>
72 <xsd:attribute name="default-value" type="xsd:string">
74 <xsd:documentation><![CDATA[
75 Specify a default literal value to fall back to if the JNDI lookup fails.
76 This is typically used for literal values in scenarios where the JNDI environment
77 might define specific config settings but those are not required to be present.
79 Default is none. Note: This is only supported for lookup on startup.
80 ]]></xsd:documentation>
83 <xsd:attribute name="default-ref" type="xsd:string">
85 <xsd:documentation><![CDATA[
86 Specify a default bean reference to fall back to if the JNDI lookup fails.
87 This might for example point to a local fallback DataSource.
89 Default is none. Note: This is only supported for lookup on startup.
90 ]]></xsd:documentation>
98 <xsd:element name="local-slsb" type="ejbType">
100 <xsd:documentation source="java:org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean"><![CDATA[
101 Exposes a reference to a local EJB Stateless SessionBean.
102 ]]></xsd:documentation>
106 <xsd:element name="remote-slsb">
108 <xsd:documentation source="java:org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"><![CDATA[
109 Exposes a reference to a remote EJB Stateless SessionBean.
110 ]]></xsd:documentation>
114 <xsd:extension base="ejbType">
115 <xsd:attribute name="home-interface" type="xsd:string">
117 <xsd:documentation source="java:java.lang.Class"><![CDATA[
118 The home interface that will be narrowed to before performing
119 the parameterless SLSB create() call that returns the actual
121 ]]></xsd:documentation>
124 <xsd:attribute name="refresh-home-on-connect-failure" type="xsd:boolean" default="false">
126 <xsd:documentation><![CDATA[
127 Controls whether to refresh the EJB home on connect failure.
129 Can be turned on to allow for hot restart of the EJB server.
130 If a cached EJB home throws an RMI exception that indicates a
131 remote connect failure, a fresh home will be fetched and the
132 invocation will be retried.
133 ]]></xsd:documentation>
136 <xsd:attribute name="cache-session-bean" type="xsd:boolean" default="false">
138 <xsd:documentation><![CDATA[
139 Controls whether to cache the actual session bean object.
141 Off by default for standard EJB compliance. Turn this flag
142 on to optimize session bean access for servers that are
143 known to allow for caching the actual session bean object.
144 ]]></xsd:documentation>
148 </xsd:complexContent>
153 <xsd:complexType name="jndiLocatingType" abstract="true">
155 <xsd:extension base="beans:identifiedType">
157 <xsd:element name="environment" minOccurs="0" maxOccurs="1">
159 <xsd:documentation><![CDATA[
160 The newline-separated, key-value pairs for the JNDI environment
161 (in standard Properties format, namely 'key=value' pairs)
162 ]]></xsd:documentation>
165 <xsd:restriction base="xsd:string"/>
169 <xsd:attribute name="environment-ref" type="environmentRefType">
171 <xsd:documentation><![CDATA[
172 A reference to JNDI environment properties, indicating the name of a
173 shared bean of type [java.util.Properties}.
174 ]]></xsd:documentation>
177 <xsd:attribute name="jndi-name" type="xsd:string" use="required">
179 <xsd:documentation><![CDATA[
180 The JNDI name to look up. This may be a fully-qualified JNDI path
181 or a local Java EE environment naming context path in which case the
182 prefix "java:comp/env/" will be prepended if applicable.
183 ]]></xsd:documentation>
186 <xsd:attribute name="resource-ref" type="xsd:boolean" default="true">
188 <xsd:documentation><![CDATA[
189 Controls whether the lookup occurs in a Java EE container, i.e. if the
190 prefix "java:comp/env/" needs to be added if the JNDI name doesn't
191 already contain it. Default is "true" (since Spring 2.5).
192 ]]></xsd:documentation>
195 <xsd:attribute name="expose-access-context" type="xsd:boolean" default="false">
197 <xsd:documentation><![CDATA[
198 Set whether to expose the JNDI environment context for all access to the target
199 EJB, i.e. for all method invocations on the exposed object reference.
200 Default is "false", i.e. to only expose the JNDI context for object lookup.
202 Switch this flag to "true" in order to expose the JNDI environment (including
203 the authorization context) for each EJB invocation, as needed by WebLogic
204 for EJBs with authorization requirements.
205 ]]></xsd:documentation>
209 </xsd:complexContent>
212 <xsd:complexType name="ejbType">
214 <xsd:extension base="jndiLocatingType">
215 <xsd:attribute name="lookup-home-on-startup" type="xsd:boolean" default="true">
217 <xsd:documentation><![CDATA[
218 Controls whether the lookup of the EJB home object is performed
219 immediately on startup (if true, the default), or on first access
221 ]]></xsd:documentation>
224 <xsd:attribute name="cache-home" type="xsd:boolean" default="true">
226 <xsd:documentation><![CDATA[
227 Controls whether the EJB home object is cached once it has been located.
228 On by default; turn this flag off to always reobtain fresh home objects.
229 ]]></xsd:documentation>
232 <xsd:attribute name="business-interface" type="xsd:string" use="required">
234 <xsd:documentation source="java:java.lang.Class"><![CDATA[
235 The business interface of the EJB being proxied.
236 ]]></xsd:documentation>
240 </xsd:complexContent>
243 <xsd:simpleType name="environmentRefType">
246 <tool:annotation kind="ref">
247 <tool:expected-type type="java.util.Properties"/>
251 <xsd:union memberTypes="xsd:string"/>