[Jboss-cvs] JBossAS SVN: r56732 - trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/jca

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 11 15:50:49 EDT 2006


Author: anil.saldhana at jboss.com
Date: 2006-09-11 15:50:48 -0400 (Mon, 11 Sep 2006)
New Revision: 56732

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/jca/CachedConnectionValve.java
Log:
JBAS-3642: throw a Runtime exception if the CCM is unavailable

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/jca/CachedConnectionValve.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/jca/CachedConnectionValve.java	2006-09-11 18:12:55 UTC (rev 56731)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/tc6/jca/CachedConnectionValve.java	2006-09-11 19:50:48 UTC (rev 56732)
@@ -145,6 +145,9 @@
 
    public void invoke(Request request, Response response) throws IOException, ServletException
    {
+      if(ccm == null)
+         throw new IllegalStateException("Please uncomment the dependency on CachedConnectionManager"
+               + " in META-INF/jboss-service.xml of jbossweb-tomcatxxx.sar");
       try
       {
          ccm.pushMetaAwareObject(this, unsharableResources);




More information about the jboss-cvs-commits mailing list