Skip to content

Commit 4dc3369

Browse files
committed
Deprecated EJB 2.x implementation class hierarchy in "ejb.support" package
1 parent 3d5bfc3 commit 4dc3369

File tree

8 files changed

+16
-2
lines changed

8 files changed

+16
-2
lines changed

spring-context/src/main/java/org/springframework/ejb/support/AbstractEnterpriseBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
* @author Juergen Hoeller
5252
* @see org.springframework.context.access.ContextJndiBeanFactoryLocator
5353
* @see org.springframework.context.access.ContextSingletonBeanFactoryLocator
54+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
5455
*/
56+
@Deprecated
5557
public abstract class AbstractEnterpriseBean implements EnterpriseBean {
5658

5759
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY = "java:comp/env/ejb/BeanFactoryPath";

spring-context/src/main/java/org/springframework/ejb/support/AbstractJmsMessageDrivenBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
* to implement the JMS <code>javax.jms.MessageListener</code> interface.
2424
*
2525
* @author Rod Johnson
26+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
2627
*/
28+
@Deprecated
2729
public abstract class AbstractJmsMessageDrivenBean extends AbstractMessageDrivenBean implements MessageListener {
2830

2931
// Empty: The purpose of this class is to ensure

spring-context/src/main/java/org/springframework/ejb/support/AbstractMessageDrivenBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
* <code>ejbCreate()</code> methods.
4141
*
4242
* @author Rod Johnson
43+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
4344
*/
45+
@Deprecated
4446
public abstract class AbstractMessageDrivenBean extends AbstractEnterpriseBean
4547
implements MessageDrivenBean {
4648

spring-context/src/main/java/org/springframework/ejb/support/AbstractSessionBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
*
2929
* @author Rod Johnson
3030
* @author Juergen Hoeller
31+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
3132
*/
33+
@Deprecated
3234
public abstract class AbstractSessionBean extends AbstractEnterpriseBean implements SmartSessionBean {
3335

3436
/** The SessionContext passed to this EJB */

spring-context/src/main/java/org/springframework/ejb/support/AbstractStatefulSessionBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
* @author Rod Johnson
4242
* @author Colin Sampaleanu
4343
* @see org.springframework.context.access.ContextJndiBeanFactoryLocator
44+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
4445
*/
46+
@Deprecated
4547
public abstract class AbstractStatefulSessionBean extends AbstractSessionBean {
4648

4749
/**

spring-context/src/main/java/org/springframework/ejb/support/AbstractStatelessSessionBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
* a common cause of EJB deployment failure.
4646
*
4747
* @author Rod Johnson
48+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
4849
*/
50+
@Deprecated
4951
public abstract class AbstractStatelessSessionBean extends AbstractSessionBean {
5052

5153
/** Logger available to subclasses */

spring-context/src/main/java/org/springframework/ejb/support/SmartSessionBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
* @since 1.2
3232
* @see AbstractStatelessSessionBean
3333
* @see AbstractStatefulSessionBean
34+
* @deprecated as of Spring 3.2, in favor of implementing EJBs in EJB 3 style
3435
*/
36+
@Deprecated
3537
public interface SmartSessionBean extends SessionBean {
3638

3739
/**

spring-context/src/main/java/org/springframework/ejb/support/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
*
44
* <p>Base classes to make implementing EJB 2.x beans simpler and less error-prone,
55
* as well as guaranteeing a Spring BeanFactory is available to such EJBs.
6-
* This promotes good practice, with EJB services used for transaction
6+
* This promotes good EJB practice, with EJB services used for transaction
77
* management, thread management, and (possibly) remoting, while
88
* business logic is implemented in easily testable POJOs.</p>
99
*
1010
* <p>In this model, the EJB is a facade, with as many POJO helpers
1111
* behind the BeanFactory as required.</p>
1212
*
13-
* <p>Note that the default behavior is to look for an EJB enviroment variable
13+
* <p>Note that the default behavior is to look for an EJB environment variable
1414
* with name <code>ejb/BeanFactoryPath</code> that specifies the
1515
* location <i>on the classpath</i> of an XML bean factory definition
1616
* file (such as <code>/com/mycom/mypackage/mybeans.xml</code>).

0 commit comments

Comments
 (0)