[overlord-commits] Overlord SVN: r750 - in cdl/trunk/samples: jbossesb/common/creditAgency and 12 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Fri Aug 14 05:27:54 EDT 2009


Author: jeff.yuchang
Date: 2009-08-14 05:27:54 -0400 (Fri, 14 Aug 2009)
New Revision: 750

Added:
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/CreditAgencyDecision.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/MemoryEPRStorage.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckInvalidMessageAction.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckResponseMessageAction.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditAgencyService.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditCheckInvalid.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/ObjectFactory.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/PurchaseDetailsType.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/package-info.java
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/WEB-INF/
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/WEB-INF/web.xml
Removed:
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/com/
Modified:
   cdl/trunk/samples/jbossesb/common/creditAgency/pom.xml
   cdl/trunk/samples/jbossesb/common/creditAgency/src/main/resources/META-INF/jboss-esb.xml
   cdl/trunk/samples/pom.xml
Log:
* refactor the credit agency's package name.
* add the web service proxy for credit agency ESB service.



Modified: cdl/trunk/samples/jbossesb/common/creditAgency/pom.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/pom.xml	2009-08-07 13:35:46 UTC (rev 749)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/pom.xml	2009-08-14 09:27:54 UTC (rev 750)
@@ -4,7 +4,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>org.jboss.savara.samples</groupId>
 	<artifactId>jbossesb-creditAgency</artifactId>
-	<packaging>jboss-esb</packaging>
+	<packaging>jar</packaging>
 	<name>Savara::Samples::CreditAgency</name>
 	<url>http://www.jboss.org/overlord</url>
 	
@@ -18,40 +18,65 @@
 			<dependency>
 				<groupId>log4j</groupId>
 				<artifactId>log4j</artifactId>
-				<version>${log4j.version}</version>
 				<scope>provided</scope>
 			</dependency>
 			<dependency>
 				<groupId>org.jboss.savara.runtime</groupId>
 				<artifactId>jbossesb</artifactId>
-				<version>${project.version}</version>
 				<scope>provided</scope>
 			</dependency>
-
+			<dependency>
+		        <groupId>sun-jaxws</groupId>
+		        <artifactId>jaxws-api</artifactId>
+				<scope>provided</scope>
+			</dependency>
+			<dependency>
+				<groupId>javax.xml.bind</groupId>
+				<artifactId>jaxb-api</artifactId>
+				<scope>provided</scope>
+			</dependency>
+			<dependency>
+		        <groupId>sun-jaxws</groupId>
+		        <artifactId>jsr181-api</artifactId>
+			    <scope>provided</scope>
+		    </dependency>
 		</dependencies>
 
 		<build>
-		    <finalName>creditAgency</finalName>
 		    <plugins>
-			<plugin>
-			<groupId>org.apache.maven.plugins</groupId>
-		    <artifactId>maven-antrun-plugin</artifactId>
-			 <executions>
-			  <!--Deploy esb artifact to JBoss AS/ESB -->
-			  <execution>
-			    <id>deploy</id>
-			    <phase>install</phase>
-			    <configuration>
-			      <tasks>
-				   <!--copy file="target/creditAgency-stateless.esb" todir="${deploy.dir}" overwrite="true" /-->
-			      </tasks>
-			    </configuration>
-			    <goals>
-			      <goal>run</goal>
-			    </goals>
-			  </execution>
-			  </executions>
-		     </plugin>		      
+		    <plugin>
+		        <artifactId>maven-assembly-plugin</artifactId>
+		        <executions>
+		          <execution>
+		            <id>war</id>
+		            <phase>package</phase>
+		            <goals>
+		              <goal>single</goal>
+		            </goals>
+		            <configuration>
+		              <finalName>creditAgency</finalName>
+		              <appendAssemblyId>false</appendAssemblyId>
+		              <descriptors>
+		                <descriptor>src/scripts/war-assembly.xml</descriptor>
+		              </descriptors>
+		            </configuration>
+		          </execution>
+		          <execution>
+		            <id>esb</id>
+		            <phase>package</phase>
+		            <goals>
+		              <goal>single</goal>
+		            </goals>
+		            <configuration>
+		              <finalName>creditAgency.esb</finalName>
+		              <appendAssemblyId>false</appendAssemblyId>
+		              <descriptors>
+		                <descriptor>src/scripts/esb-assembly.xml</descriptor>
+		              </descriptors>
+		            </configuration>
+		          </execution>		          
+		         </executions>
+	         </plugin>	      
 		    </plugins>
 		</build>
 	

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/CreditAgencyDecision.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/CreditAgencyDecision.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/CreditAgencyDecision.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.overlord.examples.creditAgency;
+
+import org.jboss.savara.jbossesb.Decision;
+import org.jboss.soa.esb.message.Message;
+
+/**
+ * @author <a href="mailto:cyu at redhat.com">Jeff Yu</a>
+ *
+ */
+public class CreditAgencyDecision implements Decision {
+
+	/* (non-Javadoc)
+	 * @see org.jboss.soa.overlord.jbossesb.Decision#executeDecision(org.jboss.soa.esb.message.Message)
+	 */
+	public boolean executeDecision(Message message) {
+		return true;
+	}
+
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/MemoryEPRStorage.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/MemoryEPRStorage.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/MemoryEPRStorage.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.overlord.examples.creditAgency;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.jboss.savara.jbossesb.EPRStore;
+import org.jboss.soa.esb.addressing.EPR;
+import org.jboss.soa.esb.message.Message;
+
+/**
+ * @author <a href="mailto:cyu at redhat.com">Jeff Yu</a>
+ *
+ */
+public class MemoryEPRStorage implements EPRStore {
+	
+	private static final Map<String, EPR> storage = new HashMap<String, EPR>();
+	
+	public EPR getEPRByRole(String roleName, Message message) {
+		return storage.get(roleName);
+	}
+
+	public void registerRole(String roleName, Message message) {
+		EPR epr = message.getHeader().getCall().getReplyTo();
+		storage.put(roleName, epr);
+	}
+
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckInvalidMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckInvalidMessageAction.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckInvalidMessageAction.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.overlord.examples.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.savara.jbossesb.XMLUtils;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.w3c.dom.Node;
+
+public class SetCreditCheckInvalidMessageAction extends AbstractActionLifecycle {
+	
+	private static Logger logger = Logger.getLogger(SetCreditCheckInvalidMessageAction.class);
+	
+	private ConfigTree config;
+	
+	public SetCreditCheckInvalidMessageAction(ConfigTree config) {
+		this.config = config;
+	}
+	
+	public Message process(Message message) throws Exception{
+		
+		Node node = XMLUtils.getNode((String)message.getBody().get());
+		String idValue = node.getAttributes().getNamedItem("id").getNodeValue();
+		message.getBody().add("<CreditCheckInvalid id=\"" + idValue +"\"></CreditCheckInvalid>");
+
+		logger.info("Updated credit message: " + message.getBody().get());
+
+		return(message);
+	}
+	
+}
+
+

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckResponseMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckResponseMessageAction.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/creditAgency/SetCreditCheckResponseMessageAction.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.overlord.examples.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.savara.jbossesb.XMLUtils;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.w3c.dom.Node;
+
+public class SetCreditCheckResponseMessageAction extends AbstractActionLifecycle {
+	
+	private static Logger logger = Logger.getLogger(SetCreditCheckResponseMessageAction.class);
+	
+	private ConfigTree config;
+	
+	public SetCreditCheckResponseMessageAction(ConfigTree config) {
+		this.config = config;
+	}
+	
+	public Message process(Message message) throws Exception{
+		
+		Node node = XMLUtils.getNode((String)message.getBody().get());
+		String idValue = node.getAttributes().getNamedItem("id").getNodeValue();
+		message.getBody().add("<CreditCheckOk id=\"" + idValue +"\"></CreditCheckOk>");
+		
+		logger.info("Updated credit message: "+message.getBody().get() +"' by thread of " + Thread.currentThread().getName());
+
+		return(message);
+	}
+	
+
+}
+
+

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditAgencyService.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditAgencyService.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditAgencyService.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2008,
+ */
+package org.jboss.overlord.examples.wsdl;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.overlord.examples.xsd.PurchaseDetailsType;
+
+
+/**
+ * @author <a href="mailto:cyu at redhat.com">Jeff Yu</a>
+ *
+ */
+ at WebService(name="creditAgencyPT", targetNamespace="http://www.jboss.org/overlord/examples/wsdl")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class CreditAgencyService {
+	
+    @WebMethod
+    @WebResult(name = "CreditCheckOk", partName = "CreditCheckOk")
+    public PurchaseDetailsType checkCredit(@WebParam(name = "CreditCheckRequest", partName = "CreditCheckRequest")
+        PurchaseDetailsType creditCheckRequest) throws CreditCheckInvalid {
+    	
+    	
+    	return creditCheckRequest;
+    }
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditCheckInvalid.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditCheckInvalid.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/wsdl/CreditCheckInvalid.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,55 @@
+
+package org.jboss.overlord.examples.wsdl;
+
+import javax.xml.ws.WebFault;
+import org.jboss.overlord.examples.xsd.PurchaseDetailsType;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.7-hudson-48-
+ * Generated source version: 2.1
+ * 
+ */
+ at WebFault(name = "CreditCheckInvalid", targetNamespace = "http://www.jboss.org/overlord/examples/xsd")
+public class CreditCheckInvalid
+    extends Exception
+{
+
+    /**
+     * Java type that goes as soapenv:Fault detail element.
+     * 
+     */
+    private PurchaseDetailsType faultInfo;
+
+    /**
+     * 
+     * @param faultInfo
+     * @param message
+     */
+    public CreditCheckInvalid(String message, PurchaseDetailsType faultInfo) {
+        super(message);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * 
+     * @param faultInfo
+     * @param message
+     * @param cause
+     */
+    public CreditCheckInvalid(String message, PurchaseDetailsType faultInfo, Throwable cause) {
+        super(message, cause);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * 
+     * @return
+     *     returns fault bean: org.jboss.overlord.examples.xsd.PurchaseDetailsType
+     */
+    public PurchaseDetailsType getFaultInfo() {
+        return faultInfo;
+    }
+
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/ObjectFactory.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/ObjectFactory.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/ObjectFactory.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,53 @@
+
+package org.jboss.overlord.examples.xsd;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.jboss.overlord.examples.xsd package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+ at XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _CreditCheckInvalid_QNAME = new QName("http://www.jboss.org/overlord/examples/xsd", "CreditCheckInvalid");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.overlord.examples.xsd
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link PurchaseDetailsType }
+     * 
+     */
+    public PurchaseDetailsType createPurchaseDetailsType() {
+        return new PurchaseDetailsType();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link PurchaseDetailsType }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://www.jboss.org/overlord/examples/xsd", name = "CreditCheckInvalid")
+    public JAXBElement<PurchaseDetailsType> createCreditCheckInvalid(PurchaseDetailsType value) {
+        return new JAXBElement<PurchaseDetailsType>(_CreditCheckInvalid_QNAME, PurchaseDetailsType.class, null, value);
+    }
+
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/PurchaseDetailsType.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/PurchaseDetailsType.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/PurchaseDetailsType.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,99 @@
+
+package org.jboss.overlord.examples.xsd;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for PurchaseDetailsType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="PurchaseDetailsType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="account" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="amount" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "PurchaseDetailsType", propOrder = {
+    "account",
+    "amount"
+})
+public class PurchaseDetailsType {
+
+    protected int account;
+    protected int amount;
+    @XmlAttribute
+    protected Integer id;
+
+    /**
+     * Gets the value of the account property.
+     * 
+     */
+    public int getAccount() {
+        return account;
+    }
+
+    /**
+     * Sets the value of the account property.
+     * 
+     */
+    public void setAccount(int value) {
+        this.account = value;
+    }
+
+    /**
+     * Gets the value of the amount property.
+     * 
+     */
+    public int getAmount() {
+        return amount;
+    }
+
+    /**
+     * Sets the value of the amount property.
+     * 
+     */
+    public void setAmount(int value) {
+        this.amount = value;
+    }
+
+    /**
+     * Gets the value of the id property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Integer }
+     *     
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * Sets the value of the id property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Integer }
+     *     
+     */
+    public void setId(Integer value) {
+        this.id = value;
+    }
+
+}

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/package-info.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/package-info.java	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/java/org/jboss/overlord/examples/xsd/package-info.java	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,2 @@
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://www.jboss.org/overlord/examples/xsd", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.overlord.examples.xsd;

Modified: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/resources/META-INF/jboss-esb.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/resources/META-INF/jboss-esb.xml	2009-08-07 13:35:46 UTC (rev 749)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/resources/META-INF/jboss-esb.xml	2009-08-14 09:27:54 UTC (rev 750)
@@ -41,11 +41,11 @@
                     <property name="operation" value="checkCredit"/>
                     <property name="messageType" value="CreditCheckRequest"/>
                     <property name="clientRole" value="Store" />
-                    <property name="eprStore" value="com.acme.services.creditAgency.MemoryEPRStorage" />
+                    <property name="eprStore" value="org.jboss.overlord.examples.creditAgency.MemoryEPRStorage" />
                 </action>
                 <action name="c3" process="process" class="org.jboss.savara.jbossesb.actions.IfAction">
                     <property name="paths">
-                        <if service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__2" decision-class="com.acme.services.creditAgency.CreditAgencyDecision"/>
+                        <if service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__2" decision-class="org.jboss.overlord.examples.creditAgency.CreditAgencyDecision"/>
                         <else service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__3"/>
                     </property>
                 </action>
@@ -56,13 +56,13 @@
                 <jms-listener busidref="busId3" maxThreads="1" name="esb-stateless-creditAgency2"/>
             </listeners>
             <actions mep="OneWay">
-                <action name="custom-1" process="process" class="com.acme.services.creditAgency.SetCreditCheckResponseMessageAction">
+                <action name="custom-1" process="process" class="org.jboss.overlord.examples.creditAgency.SetCreditCheckResponseMessageAction">
                 </action>
                 <action name="c4" process="process" class="org.jboss.savara.jbossesb.actions.SendMessageAction">
                     <property name="operation" value="checkCredit"/>
                     <property name="messageType" value="CreditCheckOk"/>
                     <property name="clientRole" value="Store"/>
-                    <property name="eprStore" value="com.acme.services.creditAgency.MemoryEPRStorage" />
+                    <property name="eprStore" value="org.jboss.overlord.examples.creditAgency.MemoryEPRStorage" />
                 </action>
             </actions>
         </service>
@@ -71,13 +71,13 @@
                 <jms-listener busidref="busId4" maxThreads="1" name="esb-stateless-creditAgency3"/>
             </listeners>
             <actions mep="OneWay">
-                <action name="custom-2" process="process" class="com.acme.services.creditAgency.SetCreditCheckInvalidMessageAction">
+                <action name="custom-2" process="process" class="org.jboss.overlord.examples.creditAgency.SetCreditCheckInvalidMessageAction">
                 </action>
                 <action name="c5" process="process" class="org.jboss.savara.jbossesb.actions.SendMessageAction">
                     <property name="operation" value="checkCredit"/>
                     <property name="messageType" value="CreditCheckInvalid"/>
                     <property name="clientRole" value="Store"/>
-                    <property name="eprStore" value="com.acme.services.creditAgency.MemoryEPRStorage" />
+                    <property name="eprStore" value="org.jboss.overlord.examples.creditAgency.MemoryEPRStorage" />
                 </action>
             </actions>
         </service>

Added: cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/WEB-INF/web.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/src/main/webapp/WEB-INF/web.xml	2009-08-14 09:27:54 UTC (rev 750)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+
+    <servlet>
+        <servlet-name>CreditAgencyService</servlet-name>
+        <servlet-class>org.jboss.overlord.examples.wsdl.CreditAgencyService</servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>CreditAgencyService</servlet-name>
+        <url-pattern>/CreditAgencyService</url-pattern>
+    </servlet-mapping>
+
+</web-app>
\ No newline at end of file

Modified: cdl/trunk/samples/pom.xml
===================================================================
--- cdl/trunk/samples/pom.xml	2009-08-07 13:35:46 UTC (rev 749)
+++ cdl/trunk/samples/pom.xml	2009-08-14 09:27:54 UTC (rev 750)
@@ -14,42 +14,49 @@
 		<version>1.0-SNAPSHOT</version>
 	</parent>
 
-	<properties>
-	   <deploy.dir>/var/local/jboss-4.2.2.GA/server/default/deploy</deploy.dir>
-	   <cdl.jbossesb.version>1.0-SNAPSHOT</cdl.jbossesb.version>
-    </properties>
-
-
 	<modules>
-		<module>jbossesb/purchasing/store</module>
 		<module>jbossesb/common/creditAgency</module>
-		<module>jbossesb/brokerage/broker</module>
-		<module>jbossesb/brokerage/supplier</module>
 	</modules>
 
-   <build>
-	<plugins>
-	  <plugin>
-	     <groupId>org.codehaus.mojo</groupId>
-		 <artifactId>jboss-packaging-maven-plugin</artifactId>
-	     <version>2.0-20080130.110241-9</version>
-	     <extensions>true</extensions>
-	  </plugin>
-	</plugins>
-   </build>
+	<properties>
+		<jaxb.version>2.1</jaxb.version>
+                <savara.version>1.0-SNAPSHOT</savara.version>
+	</properties>
 
-	<pluginRepositories>
-	     <pluginRepository>
-		   <releases>
-		      <enabled>false</enabled>
-		   </releases>
-		   <snapshots/>
-		   <id>jboss-plugin-snapshots</id>
-		   <name>JBoss Snapshot Plugin Repository</name>
-		   <url>http://snapshots.repository.codehaus.org</url>
-		 </pluginRepository>
-	</pluginRepositories>
+	<dependencyManagement>
+	   <dependencies>	
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+			<version>${log4j.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.jboss.savara.runtime</groupId>
+			<artifactId>jbossesb</artifactId>
+			<version>${savara.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+		        <groupId>sun-jaxws</groupId>
+		        <artifactId>jaxws-api</artifactId>
+		        <version>2.1.1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+		        <groupId>sun-jaxws</groupId>
+		        <artifactId>jsr181-api</artifactId>
+		        <version>2.1.1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.xml.bind</groupId>
+			<artifactId>jaxb-api</artifactId>
+			<version>${jaxb.version}</version>
+			<scope>provided</scope>
+		</dependency>
+       </dependencies>
+	</dependencyManagement>
 
-
 </project>
 



More information about the overlord-commits mailing list