|
From: <pka...@us...> - 2009-07-28 14:31:23
|
Revision: 386
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=386&view=rev
Author: pkasprzak
Date: 2009-07-28 14:31:11 +0000 (Tue, 28 Jul 2009)
Log Message:
-----------
* DependencyManager + SystemManager WS-Interface
Modified Paths:
--------------
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/catalog.xml
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jax-ws.xml
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jaxws-build.xml
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerImpl.java
Added Paths:
-----------
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerWS.java
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerWS.java
Removed Paths:
-------------
trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/conf/wsdl/client/DependencyManagerNotification/
Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/catalog.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/catalog.xml 2009-07-28 14:28:29 UTC (rev 385)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/catalog.xml 2009-07-28 14:31:11 UTC (rev 386)
@@ -2,4 +2,5 @@
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="file:/home/pete/dipl/devel/cse-ip/CSECore-ejb/../Common/src/CDDM.xsd" uri="src/conf/xml-resources/jaxb/cddm/CDDM.xsd"/>
<system systemId="file:/home/pete/dipl/devel/cse-ip/Common/src/DependencyManagerNotification.wsdl" uri="src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl"/>
+ <system systemId="file:/home/pete/NetBeansProjects/CSE-IP/Common/src/DependencyManagerNotification.wsdl" uri="src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl"/>
</catalog>
\ No newline at end of file
Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jax-ws.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jax-ws.xml 2009-07-28 14:28:29 UTC (rev 385)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jax-ws.xml 2009-07-28 14:31:11 UTC (rev 386)
@@ -10,10 +10,16 @@
<service name="RelationManager">
<implementation-class>de.campussource.cse.core.RelationManagerWS</implementation-class>
</service>
+ <service name="DependencyManagerWS">
+ <implementation-class>de.campussource.cse.core.DependencyManagerWS</implementation-class>
+ </service>
+ <service name="SystemManagerWS">
+ <implementation-class>de.campussource.cse.core.SystemManagerWS</implementation-class>
+ </service>
</services>
<clients>
<client name="DependencyManagerNotification">
- <wsdl-url>file:/home/pete/dipl/devel/cse-ip/Common/src/DependencyManagerNotification.wsdl</wsdl-url>
+ <wsdl-url>file:/home/pete/NetBeansProjects/CSE-IP/Common/src/DependencyManagerNotification.wsdl</wsdl-url>
<local-wsdl-file>DependencyManagerNotification.wsdl</local-wsdl-file>
<package-name>org.netbeans.j2ee.wsdl.common.dependencymanagernotification</package-name>
<catalog-file>catalog.xml</catalog-file>
@@ -28,7 +34,7 @@
</wsimport-option>
<wsimport-option>
<wsimport-option-name>wsdlLocation</wsimport-option-name>
- <wsimport-option-value>file:/home/pete/dipl/devel/cse-ip/Common/src/DependencyManagerNotification.wsdl</wsimport-option-value>
+ <wsimport-option-value>file:/home/pete/NetBeansProjects/CSE-IP/Common/src/DependencyManagerNotification.wsdl</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>xnocompile</wsimport-option-name>
Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jaxws-build.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jaxws-build.xml 2009-07-28 14:28:29 UTC (rev 385)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/nbproject/jaxws-build.xml 2009-07-28 14:31:11 UTC (rev 386)
@@ -13,7 +13,7 @@
<classpath path="${j2ee.platform.wsgen.classpath}"/>
</taskdef>
</target>
- <target name="wsgen-compile" depends="wsgen-EntityManager, wsgen-IdentityManager, wsgen-RelationManager">
+ <target name="wsgen-compile" depends="wsgen-EntityManager, wsgen-IdentityManager, wsgen-RelationManager, wsgen-DependencyManagerWS, wsgen-SystemManagerWS">
<ejbjarproject2:javac srcdir="${build.generated.dir}/wsgen/service" classpath="${j2ee.platform.wsgen.classpath}:${javac.classpath}" destdir="${classes.dir}"/>
</target>
<target name="wsgen-EntityManager" depends="wsgen-init, -do-compile">
@@ -31,6 +31,16 @@
<classpath path="${java.home}/../lib/tools.jar:${classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
</wsgen>
</target>
+ <target name="wsgen-DependencyManagerWS" depends="wsgen-init, -do-compile">
+ <wsgen destdir="${build.generated.dir}/wsgen/binaries" sourcedestdir="${build.generated.dir}/wsgen/service" resourcedestdir="${build.generated.dir}/wsgen/service/resources/" xendorsed="true" keep="false" genwsdl="true" sei="de.campussource.cse.core.DependencyManagerWS">
+ <classpath path="${java.home}/../lib/tools.jar:${classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
+ </wsgen>
+ </target>
+ <target name="wsgen-SystemManagerWS" depends="wsgen-init, -do-compile">
+ <wsgen destdir="${build.generated.dir}/wsgen/binaries" sourcedestdir="${build.generated.dir}/wsgen/service" resourcedestdir="${build.generated.dir}/wsgen/service/resources/" xendorsed="true" keep="false" genwsdl="true" sei="de.campussource.cse.core.SystemManagerWS">
+ <classpath path="${java.home}/../lib/tools.jar:${classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
+ </wsgen>
+ </target>
<!--
===================
JAX-WS WSIMPORT SECTION
@@ -51,7 +61,7 @@
</target>
<target name="wsimport-client-DependencyManagerNotification" depends="wsimport-init,wsimport-client-check-DependencyManagerNotification" unless="wsimport-client-DependencyManagerNotification.notRequired">
<property name="wsdl-DependencyManagerNotification" location="${meta.inf}/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl"/>
- <wsimport sourcedestdir="${build.generated.dir}/wsimport/client" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${wsdl-DependencyManagerNotification}" catalog="catalog.xml" extension="true" verbose="true" wsdlLocation="file:/home/pete/dipl/devel/cse-ip/Common/src/DependencyManagerNotification.wsdl" xnocompile="true"/>
+ <wsimport sourcedestdir="${build.generated.dir}/wsimport/client" destdir="${build.generated.dir}/wsimport/binaries" wsdl="${wsdl-DependencyManagerNotification}" catalog="catalog.xml" extension="true" verbose="true" wsdlLocation="file:/home/pete/NetBeansProjects/CSE-IP/Common/src/DependencyManagerNotification.wsdl" xnocompile="true"/>
</target>
<target name="wsimport-client-clean-DependencyManagerNotification" depends="-init-project">
<delete dir="${build.generated.dir}/wsimport/client/org/netbeans/j2ee/wsdl/common/dependencymanagernotification"/>
Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl 2009-07-28 14:28:29 UTC (rev 385)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/conf/xml-resources/web-service-references/DependencyManagerNotification/wsdl/DependencyManagerNotification.wsdl 2009-07-28 14:31:11 UTC (rev 386)
@@ -2,7 +2,7 @@
<definitions name="DependencyManagerNotification" targetNamespace="http://j2ee.netbeans.org/wsdl/Common/DependencyManagerNotification"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/Common/DependencyManagerNotification" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/Common/DependencyManagerNotification" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop">
<types/>
<message name="notifyRequest">
<part name="entityId" type="xsd:int"/>
@@ -27,10 +27,14 @@
<soap:address location="http://localhost:${HttpDefaultPort}/DependencyManagerNotificationService/DependencyManagerNotificationPort"/>
</port>
</service>
+
<plnk:partnerLinkType name="DependencyManagerNotification">
- <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
-In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
-A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
<plnk:role name="DependencyManagerNotificationPortTypeRole" portType="tns:DependencyManagerNotificationPortType"/>
</plnk:partnerLinkType>
+
+ <vprop:property name="EntityId" type="xsd:int"/>
+ <vprop:property name="System" type="xsd:string"/>
+ <vprop:propertyAlias propertyName="tns:EntityId" messageType="tns:notifyRequest" part="entityId"/>
+ <vprop:propertyAlias propertyName="tns:System" messageType="tns:notifyRequest" part="system"/>
+
</definitions>
Added: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerWS.java
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerWS.java (rev 0)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/DependencyManagerWS.java 2009-07-28 14:31:11 UTC (rev 386)
@@ -0,0 +1,39 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package de.campussource.cse.core;
+
+import javax.ejb.EJB;
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.ejb.Stateless;
+
+/**
+ *
+ * @author pete
+ */
+@WebService(name = "DependencyManager", targetNamespace="http://cse.campussource.de/ejb/DependencyManager")
+@Stateless()
+public class DependencyManagerWS {
+
+ @EJB
+ private DependencyManager ejbRef;
+
+ @WebMethod(operationName = "waitForDependencies")
+ @Oneway
+ public void waitForDependencies( @WebParam(name = "entityId") int entityId) {
+ ejbRef.waitForDependencies(entityId);
+ }
+
+ @WebMethod(operationName = "satisfyDependencies")
+ @Oneway
+ public void satisfyDependencies( @WebParam(name = "entityId") int entityId,
+ @WebParam(name = "system") String system) {
+ ejbRef.satisfyDependencies(entityId, system);
+ }
+
+}
Modified: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerImpl.java
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerImpl.java 2009-07-28 14:28:29 UTC (rev 385)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerImpl.java 2009-07-28 14:31:11 UTC (rev 386)
@@ -17,6 +17,7 @@
@PersistenceContext
private EntityManager em;
+ // ----------------------------------------------------------------------------------------------------------------
public List<String> getOutboundSystems() {
List<String> systems = new LinkedList<String>();
Added: trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerWS.java
===================================================================
--- trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerWS.java (rev 0)
+++ trunk/sandbox/lsf-adapter-demo/CSECore-ejb/src/java/de/campussource/cse/core/SystemManagerWS.java 2009-07-28 14:31:11 UTC (rev 386)
@@ -0,0 +1,25 @@
+package de.campussource.cse.core;
+
+import java.util.List;
+import javax.ejb.EJB;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.ejb.Stateless;
+
+/**
+ *
+ * @author pete
+ */
+@WebService(name = "SystemManager", targetNamespace="http://cse.campussource.de/ejb/SystemManager")
+@Stateless()
+public class SystemManagerWS {
+
+ @EJB
+ private SystemManager ejbRef;
+
+ @WebMethod(operationName = "getOutboundSystems")
+ public List<String> getOutboundSystems() {
+ return ejbRef.getOutboundSystems();
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|