Replace J2EE with Java EE
String with version 5 the name of Java Platform, Enterprise Edition changed from J2EE to Java EE. However a lot of the documentation still uses the term J2EE. This commit includes the following changes: * replace J2EE with Java EE where appropriate This is not a blind search and replace. The following occurrences remain unchanged: * references to old J2EE releases, most notably 1.3 and 1.4. * references to "Expert One-On-One J2EE Design and Development" * references to "Core J2EE patterns" * XML namespaces * package names Issue: SPR-14811 See gh-1206
This commit is contained in:
committed by
Stephane Nicoll
parent
8619ad9d9a
commit
ae5b0c6fb5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,14 +47,14 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
|
||||
*
|
||||
* <p>Application code is required to retrieve the JDBC Connection via
|
||||
* {@link DataSourceUtils#getConnection(DataSource)} instead of a standard
|
||||
* J2EE-style {@link DataSource#getConnection()} call. Spring classes such as
|
||||
* Java EE-style {@link DataSource#getConnection()} call. Spring classes such as
|
||||
* {@link org.springframework.jdbc.core.JdbcTemplate} use this strategy implicitly.
|
||||
* If not used in combination with this transaction manager, the
|
||||
* {@link DataSourceUtils} lookup strategy behaves exactly like the native
|
||||
* DataSource lookup; it can thus be used in a portable fashion.
|
||||
*
|
||||
* <p>Alternatively, you can allow application code to work with the standard
|
||||
* J2EE-style lookup pattern {@link DataSource#getConnection()}, for example for
|
||||
* Java EE-style lookup pattern {@link DataSource#getConnection()}, for example for
|
||||
* legacy code that is not aware of Spring at all. In that case, define a
|
||||
* {@link TransactionAwareDataSourceProxy} for your target DataSource, and pass
|
||||
* that proxy DataSource to your DAOs, which will automatically participate in
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,7 @@ import org.springframework.util.ClassUtils;
|
||||
* connection pool, implementing the same standard interface, but creating new
|
||||
* Connections on every call.
|
||||
*
|
||||
* <p>Useful for test or standalone environments outside of a J2EE container, either
|
||||
* <p>Useful for test or standalone environments outside of a Java EE container, either
|
||||
* as a DataSource bean in a corresponding ApplicationContext or in conjunction with
|
||||
* a simple JNDI environment. Pool-assuming {@code Connection.close()} calls will
|
||||
* simply close the Connection, so any DataSource-aware persistence code should work.
|
||||
@@ -44,7 +44,7 @@ import org.springframework.util.ClassUtils;
|
||||
* loading issues with the JDBC DriverManager that be resolved through direct Driver
|
||||
* usage (which is exactly what SimpleDriverDataSource does).</b>
|
||||
*
|
||||
* <p>In a J2EE container, it is recommended to use a JNDI DataSource provided by
|
||||
* <p>In a Java EE container, it is recommended to use a JNDI DataSource provided by
|
||||
* the container. Such a DataSource can be exposed as a DataSource bean in a Spring
|
||||
* ApplicationContext via {@link org.springframework.jndi.JndiObjectFactoryBean},
|
||||
* for seamless switching to and from a local DataSource bean like this class.
|
||||
@@ -52,7 +52,7 @@ import org.springframework.util.ClassUtils;
|
||||
* {@link org.springframework.mock.jndi.SimpleNamingContextBuilder}, or switch the
|
||||
* bean definition to a local DataSource (which is simpler and thus recommended).
|
||||
*
|
||||
* <p>If you need a "real" connection pool outside of a J2EE container, consider
|
||||
* <p>If you need a "real" connection pool outside of a Java EE container, consider
|
||||
* <a href="http://commons.apache.org/proper/commons-dbcp">Apache Commons DBCP</a>
|
||||
* or <a href="http://sourceforge.net/projects/c3p0">C3P0</a>.
|
||||
* Commons DBCP's BasicDataSource and C3P0's ComboPooledDataSource are full
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -54,7 +54,7 @@ import org.springframework.core.Constants;
|
||||
* without paying a performance penalty if no actual data access happens.
|
||||
*
|
||||
* <p>This DataSource proxy gives you behavior analogous to JTA and a
|
||||
* transactional JNDI DataSource (as provided by the J2EE server), even
|
||||
* transactional JNDI DataSource (as provided by the Java EE server), even
|
||||
* with a local transaction strategy like DataSourceTransactionManager or
|
||||
* HibernateTransactionManager. It does not add value with Spring's
|
||||
* JtaTransactionManager as transaction strategy.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,12 +34,12 @@ import org.springframework.util.Assert;
|
||||
* connection pool, implementing the same standard interface, but creating new
|
||||
* Connections on every call.
|
||||
*
|
||||
* <p>In a J2EE container, it is recommended to use a JNDI DataSource provided by
|
||||
* <p>In a Java EE container, it is recommended to use a JNDI DataSource provided by
|
||||
* the container. Such a DataSource can be exposed as a DataSource bean in a Spring
|
||||
* ApplicationContext via {@link org.springframework.jndi.JndiObjectFactoryBean},
|
||||
* for seamless switching to and from a local DataSource bean like this class.
|
||||
*
|
||||
* <p>If you need a "real" connection pool outside of a J2EE container, consider
|
||||
* <p>If you need a "real" connection pool outside of a Java EE container, consider
|
||||
* <a href="http://commons.apache.org/proper/commons-dbcp">Apache Commons DBCP</a>
|
||||
* or <a href="http://sourceforge.net/projects/c3p0">C3P0</a>.
|
||||
* Commons DBCP's BasicDataSource and C3P0's ComboPooledDataSource are full
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,7 +31,7 @@ import org.springframework.util.Assert;
|
||||
/**
|
||||
* Proxy for a target JDBC {@link javax.sql.DataSource}, adding awareness of
|
||||
* Spring-managed transactions. Similar to a transactional JNDI DataSource
|
||||
* as provided by a J2EE server.
|
||||
* as provided by a Java EE server.
|
||||
*
|
||||
* <p>Data access code that should remain unaware of Spring's data access support
|
||||
* can work with this proxy to seamlessly participate in Spring-managed transactions.
|
||||
@@ -51,7 +51,7 @@ import org.springframework.util.Assert;
|
||||
* Connection. If not within a transaction, normal DataSource behavior applies.
|
||||
*
|
||||
* <p>This proxy allows data access code to work with the plain JDBC API and still
|
||||
* participate in Spring-managed transactions, similar to JDBC code in a J2EE/JTA
|
||||
* participate in Spring-managed transactions, similar to JDBC code in a Java EE/JTA
|
||||
* environment. However, if possible, use Spring's DataSourceUtils, JdbcTemplate or
|
||||
* JDBC operation objects to get transaction participation even without a proxy for
|
||||
* the target DataSource, avoiding the need to define such a proxy in the first place.
|
||||
|
||||
Reference in New Issue
Block a user