Author: shawkins
Date: 2011-02-25 00:38:10 -0500 (Fri, 25 Feb 2011)
New Revision: 2944
Modified:
trunk/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java
Log:
TEIID-1329 adding the markDataSourceAvailable method to force the load of dynamic vdb
metadata
Modified:
trunk/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java
===================================================================
---
trunk/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java 2011-02-25
05:37:40 UTC (rev 2943)
+++
trunk/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java 2011-02-25
05:38:10 UTC (rev 2944)
@@ -80,6 +80,7 @@
import org.teiid.core.TeiidRuntimeException;
import org.teiid.deployers.VDBLifeCycleListener;
import org.teiid.deployers.VDBRepository;
+import org.teiid.deployers.VDBStatusChecker;
import org.teiid.dqp.internal.process.DQPConfiguration;
import org.teiid.dqp.internal.process.DQPCore;
import org.teiid.dqp.internal.process.DQPWorkContext;
@@ -121,6 +122,7 @@
private transient Admin admin;
private transient ClientServiceRegistryImpl csr = new ClientServiceRegistryImpl();
private transient VDBRepository vdbRepository;
+ private transient VDBStatusChecker vdbStatusChecker;
private transient ProfileService profileService;
private transient String jndiName;
@@ -279,10 +281,10 @@
this.logon = new LogonImpl(this.sessionService, "teiid-cluster");
//$NON-NLS-1$
if (profileService != null) {
- this.admin = AdminProvider.getLocal(profileService);
+ this.admin = AdminProvider.getLocal(profileService, vdbStatusChecker);
} else {
try {
- this.admin = AdminProvider.getLocal();
+ this.admin = AdminProvider.getLocal(vdbStatusChecker);
} catch (AdminComponentException e) {
throw new TeiidRuntimeException(e.getCause());
}
@@ -352,6 +354,10 @@
this.vdbRepository = repo;
}
+ public void setVDBStatusChecker(VDBStatusChecker vdbStatusChecker) {
+ this.vdbStatusChecker = vdbStatusChecker;
+ }
+
public void setProfileService(final ProfileService profileService) {
this.profileService = profileService ;
}
Show replies by date