Author: kurtstam
Date: 2013-02-07 17:53:40 -0500 (Thu, 07 Feb 2013)
New Revision: 1602
Added:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/classes/META-INF/
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/classes/META-INF/uddi.xml
Modified:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/build.xml
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/web.xml
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/LoanApprovalPTImpl.java
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/RiskAssessmentPTImpl.java
Log:
RIFTSAW-492, adding UDDI annotations to the LoadApproval and RiskAssessment Services. Now
they show up in the uddi-console as registered services.
Modified: branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/build.xml
===================================================================
--- branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/build.xml 2013-02-07 22:10:30
UTC (rev 1601)
+++ branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/build.xml 2013-02-07 22:53:40
UTC (rev 1602)
@@ -14,8 +14,9 @@
<property name="war.build.dir"
location="build/war/classes"/>
<path id="compile-classpath">
- <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/> <!-- Required for JMS Client Code. -->
- </path>
+ <fileset dir="${org.jboss.as.home}/client" includes="*.jar"
/> <!-- Required for JMS Client Code. -->
+ <fileset
dir="${org.jboss.esb.server.home}/server/default/deployers/esb.deployer/lib"
includes="*.jar"/>
+ </path>
<property name="compile-classpath"
refid="compile-classpath"/>
<target name="makewar" description="make war">
Added:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/classes/META-INF/uddi.xml
===================================================================
---
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/classes/META-INF/uddi.xml
(rev 0)
+++
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/classes/META-INF/uddi.xml 2013-02-07
22:53:40 UTC (rev 1602)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uddi>
+ <reloadDelay>3600000</reloadDelay>
+ <manager name="riftsaw-manager">
+ <nodes>
+ <node isHomeJUDDI="true">
+ <name>riftsaw</name>
+ <description>Riftsaw node</description>
+ <properties>
+ <property name="serverName" value="localhost" />
+ <property name="serverPort" value="8080" />
+ <property name="keyDomain" value="riftsaw.jboss.org" />
+ <property name="businessName" value="redhat-jboss" />
+ <property name="serviceDescription" value="BPEL Service deployed
by Riftsaw" />
+ <property name="bindingDescription" value="BPEL Endpoint deployed
by Riftsaw" />
+ </properties>
+ <!--
+ In VM Transport Settings
+ <proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport>
+ -->
+ <proxyTransport>org.jboss.internal.soa.esb.registry.client.JuddiInVMTransport
+ </proxyTransport>
+ <custodyTransferUrl>org.apache.juddi.api.impl.UDDICustodyTransferImpl
+ </custodyTransferUrl>
+ <inquiryUrl>org.apache.juddi.api.impl.UDDIInquiryImpl</inquiryUrl>
+ <publishUrl>org.apache.juddi.api.impl.UDDIPublicationImpl
+ </publishUrl>
+ <securityUrl>org.apache.juddi.api.impl.UDDISecurityImpl
+ </securityUrl>
+ <subscriptionUrl>org.apache.juddi.api.impl.UDDISubscriptionImpl
+ </subscriptionUrl>
+ <subscriptionListenerUrl>org.apache.juddi.api.impl.UDDISubscriptionListenerImpl
+ </subscriptionListenerUrl>
+ <juddiApiUrl>org.apache.juddi.api.impl.JUDDIApiImpl</juddiApiUrl>
+
+ <!--
+ JAX-WS Transport
+ <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
+ <custodyTransferUrl>${webservice.baseurl}/juddiv3/services/custody-transfer</custodyTransferUrl>
+ <inquiryUrl>${webservice.baseurl}/juddiv3/services/inquiry</inquiryUrl>
+ <publishUrl>${webservice.baseurl}/juddiv3/services/publish</publishUrl>
+ <securityUrl>${webservice.baseurl}/juddiv3/services/security</securityUrl>
+ <subscriptionUrl>${webservice.baseurl}/juddiv3/services/subscription</subscriptionUrl>
+ <subscriptionListenerUrl>${webservice.baseurl}/juddiv3/services/subscription-listener</subscriptionListenerUrl>
+ <juddiApiUrl>${webservice.baseurl}/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
+ -->
+ </node>
+ </nodes>
+ <clerks registerOnStartup="true">
+ <clerk name="BobCratchit" node="riftsaw"
publisher="riftsaw"
+ password="">
+ <class>com.example.loan_approval.wsdl.LoanApprovalPTImpl</class>
+ <class>com.example.loan_approval.wsdl.RiskAssessmentPTImpl</class>
+ </clerk>
+ </clerks>
+
+ </manager>
+</uddi>
\ No newline at end of file
Modified:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/web.xml
===================================================================
---
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/web.xml 2013-02-07
22:10:30 UTC (rev 1601)
+++
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/resources/WEB-INF/web.xml 2013-02-07
22:53:40 UTC (rev 1602)
@@ -13,6 +13,16 @@
<servlet-name>LoanApproval</servlet-name>
<servlet-class>com.example.loan_approval.wsdl.LoanApprovalPTImpl</servlet-class>
</servlet>
+ <servlet>
+ <display-name>Clerk Servlet</display-name>
+ <servlet-name>UDDIClerkServlet</servlet-name>
+
<servlet-class>org.apache.juddi.v3.client.config.UDDIClerkServlet</servlet-class>
+ <init-param>
+ <param-name>uddi.client.manager.name</param-name>
+ <param-value>riftsaw-manager</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
<servlet-mapping>
<servlet-name>RiskAssessment</servlet-name>
Modified:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/LoanApprovalPTImpl.java
===================================================================
---
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/LoanApprovalPTImpl.java 2013-02-07
22:10:30 UTC (rev 1601)
+++
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/LoanApprovalPTImpl.java 2013-02-07
22:53:40 UTC (rev 1602)
@@ -8,7 +8,20 @@
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
+import org.apache.juddi.v3.annotations.UDDIService;
+import org.apache.juddi.v3.annotations.UDDIServiceBinding;
+@UDDIService(
+ businessKey="uddi:${keyDomain}:business_${businessName}",
+ serviceKey="uddi:${keyDomain}:service_loanApprover",
+ description = "loanapprover test service")
+
+@UDDIServiceBinding(
+
bindingKey="uddi:${keyDomain}:binding_${serverName}-${serverPort}_loanApprover_loanApprover_Port",
+ description="WSDL endpoint for the loanApprover Service. This service is used
for testing the jUDDI annotation functionality",
+ accessPointType="wsdlDeployment",
+
accessPoint="http://${serverName}:${serverPort}/Quickstart_bpel_loan_approval/LoanApproval?wsdl")
+
@WebService(targetNamespace = "http://example.com/loan-approval/wsdl/",
endpointInterface="com.example.loan_approval.wsdl.LoanApprovalPT",
serviceName="loanApprover", portName="loanApprover_Port")
public class LoanApprovalPTImpl implements LoanApprovalPT {
Modified:
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/RiskAssessmentPTImpl.java
===================================================================
---
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/RiskAssessmentPTImpl.java 2013-02-07
22:10:30 UTC (rev 1601)
+++
branches/RiftSaw-2.3.x/samples/quickstart/loan_approval/war/src/com/example/loan_approval/wsdl/RiskAssessmentPTImpl.java 2013-02-07
22:53:40 UTC (rev 1602)
@@ -4,6 +4,20 @@
import java.math.BigInteger;
import javax.jws.WebService;
+import org.apache.juddi.v3.annotations.UDDIService;
+import org.apache.juddi.v3.annotations.UDDIServiceBinding;
+
+@UDDIService(
+ businessKey="uddi:${keyDomain}:business_${businessName}",
+ serviceKey="uddi:${keyDomain}:service_riskAssessor",
+ description = "riskassessor test service")
+
+@UDDIServiceBinding(
+
bindingKey="uddi:${keyDomain}:binding_${serverName}-${serverPort}_riskAssessor_riskAssessor_Port",
+ description="WSDL endpoint for the riskassessor Service. This service is used
for testing the jUDDI annotation functionality",
+ accessPointType="wsdlDeployment",
+
accessPoint="http://${serverName}:${serverPort}/Quickstart_bpel_loan_approval/RiskAssessment?wsdl")
+
@WebService(
endpointInterface="com.example.loan_approval.wsdl.RiskAssessmentPT",
targetNamespace = "http://example.com/loan-approval/wsdl/",
Show replies by date