[seam-commits] Seam SVN: r9966 - trunk/src/main/org/jboss/seam.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jan 21 11:19:48 EST 2009


Author: norman.richards at jboss.com
Date: 2009-01-21 11:19:48 -0500 (Wed, 21 Jan 2009)
New Revision: 9966

Modified:
   trunk/src/main/org/jboss/seam/Component.java
Log:
JBSEAM-3869

Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java	2009-01-21 07:48:16 UTC (rev 9965)
+++ trunk/src/main/org/jboss/seam/Component.java	2009-01-21 16:19:48 UTC (rev 9966)
@@ -408,6 +408,10 @@
       {
          throw new IllegalArgumentException("Message-driven beans must be bound to STATELESS context: " + name);
       }      
+      if ( scope!=STATELESS && type==ComponentType.STATELESS_SESSION_BEAN )
+      {
+          log.warn("Stateless session beans should only be bound to the STATELESS context:" + name);
+      }      
    }
    
    protected void checkSynchronizedForComponentType()




More information about the seam-commits mailing list