This commit is contained in:
Lucio Lelii 2008-10-22 17:43:44 +00:00
parent d756cc37f0
commit ddef231856
1 changed files with 21 additions and 2 deletions

View File

@ -7,7 +7,11 @@ import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import javax.xml.rpc.ServiceException;
import org.gcube.common.core.faults.GCUBEFault;
import org.gcube.vremanagement.vremanager.stubs.vremanager.VREManagerPortType;
import org.gcube.vremanagement.vremanager.stubs.vremanager.service.VREManagerServiceAddressingLocator;
import org.gcube.vremanagement.vremodeler.db.DBInterface;
import org.gcube.vremanagement.vremodeler.stubs.CollectionArray;
import org.gcube.vremanagement.vremodeler.stubs.FunctionalityIDArray;
@ -429,8 +433,23 @@ public class ModelerService {
* @return
* @throws RemoteException -
*/
public void deployVRE() throws RemoteException{
/*DBInterface.ExecuteUpdate("UPDATE DL SET STATUS='Deploying' WHERE DL.id='"+getResource().getId()+"';");
public void deployVRE() throws GCUBEFault{
try {
DBInterface.ExecuteUpdate("UPDATE VRE SET STATUS='Deploying' WHERE VRE.id='"+getResource().getId()+"';");
} catch (ResourceException e1) {
throw new GCUBEFault(e1);
}
VREManagerServiceAddressingLocator vreManAL= new VREManagerServiceAddressingLocator();
try {
VREManagerPortType vreManagerPT=vreManAL.getVREManagerPortTypePort();
} catch (ServiceException e) {
throw new GCUBEFault(e);
}
/*
DLManagementFactoryServiceAddressingLocator dlMan=new DLManagementFactoryServiceAddressingLocator();
try {
//retreive and connect to the DLManagement