geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r472993 - /geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java
Date Thu, 09 Nov 2006 17:57:26 GMT
Author: vamsic007
Date: Thu Nov  9 09:57:25 2006
New Revision: 472993

URL: http://svn.apache.org/viewvc?view=rev&rev=472993
Log:
GERONIMO-1986 TranQL Connector doesn't check Driver Class during deployment

Modified:
    geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java

Modified: geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java?view=diff&rev=472993&r1=472992&r2=472993
==============================================================================
--- geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java
(original)
+++ geronimo/server/branches/1.1/modules/connector-builder/src/java/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.java
Thu Nov  9 09:57:25 2006
@@ -741,6 +741,19 @@
 
         // ManagedConnectionFactory
         setDynamicGBeanDataAttributes(managedConnectionFactoryInstanceGBeanData, connectiondefinitionInstance.getConfigPropertySettingArray(),
cl);
+
+        //Check if Driver class is available here. This should be available in cl. If not
throw a deployment error as
+        //the plan gets deployed and while starting GBean an error is thrown 
+
+        String driver = (String)managedConnectionFactoryInstanceGBeanData.getAttribute("Driver");
+        if (driver != null) {
+            try {
+                cl.loadClass(driver);
+            } catch (ClassNotFoundException e1) {
+                throw new DeploymentException(e1);
+            }
+        }
+
         try {
             if (resourceAdapterAbstractName != null) {
                 managedConnectionFactoryInstanceGBeanData.setReferencePattern("ResourceAdapterWrapper",
resourceAdapterAbstractName);



Mime
View raw message