From: <pka...@us...> - 2009-07-28 22:20:02
|
Revision: 394 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=394&view=rev Author: pkasprzak Date: 2009-07-28 22:19:54 +0000 (Tue, 28 Jul 2009) Log Message: ----------- * Correlation Stuff :) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerImpl.java Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerImpl.java =================================================================== --- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerImpl.java 2009-07-28 22:18:45 UTC (rev 393) +++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerImpl.java 2009-07-28 22:19:54 UTC (rev 394) @@ -7,6 +7,7 @@ import de.campussource.cse.core.pdm.Relation; import de.campussource.cse.core.pdm.RelationType; import de.campussource.cse.core.pdm.WaitingProcess; +import de.campussource.cse.ejb.dependencymanager.DependencyManagerNotificationService; import java.util.HashSet; import java.util.List; import java.util.logging.Logger; @@ -14,7 +15,6 @@ import javax.ejb.Stateless; import javax.persistence.PersistenceContext; import javax.xml.ws.WebServiceRef; -import org.netbeans.j2ee.wsdl.common.dependencymanagernotification.DependencyManagerNotificationService; /** * @@ -22,7 +22,8 @@ */ @Stateless(mappedName = "cse/DependencyManager") public class DependencyManagerImpl implements DependencyManagerRemote, DependencyManager { - @WebServiceRef(wsdlLocation = "META-INF/wsdl/client/DependencyManagerNotification/DependencyManagerNotification.wsdl") + + @WebServiceRef(wsdlLocation = "META-INF/wsdl/client/DependencyManager/DependencyManager.wsdl") private DependencyManagerNotificationService service; @PersistenceContext @@ -154,17 +155,19 @@ // ---------------------------------------------------------------------------------------------------------------- protected void wakeUpWaitingProcess(WaitingProcess process) { + + /* Call process */ try { - org.netbeans.j2ee.wsdl.common.dependencymanagernotification.DependencyManagerNotificationPortType port = service.getDependencyManagerNotificationPort(); - + de.campussource.cse.ejb.dependencymanager.DependencyManagerNotification port = service.getDependencyManagerNotificationPort(); + int entityId = process.getEntityId(); String system = process.getSystem(); - + port.notify(entityId, system); } catch (Exception ex) { - logger.info("Exception while trying to notify process: " + ex.getMessage()); + logger.severe("Exception while notifying process: " + ex.getMessage()); } /* Remove dependencies */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |