Author: norman.richards(a)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()
Show replies by date