[overlord-commits] Overlord SVN: r538 - in cdl/trunk/samples/jbossesb: common/creditAgency/stateless and 20 other directories.
overlord-commits at lists.jboss.org
overlord-commits at lists.jboss.org
Fri Mar 13 03:34:38 EDT 2009
Author: jeff.yuchang
Date: 2009-03-13 03:34:38 -0400 (Fri, 13 Mar 2009)
New Revision: 538
Added:
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/pom.xml
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/CreditAgencyDecision.java
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/deployment.xml
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/jboss-esb.xml
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/jbmq-queue-service.xml
cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/log4j.xml
cdl/trunk/samples/jbossesb/purchasing/store/stateless/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/pom.xml
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/PurchaseGoods.java
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyFailedMessageAction.java
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyResponseMessageAction.java
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetCreditCheckRequestMessageAction.java
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/deployment.xml
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/jboss-esb.xml
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/jbmq-queue-service.xml
cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/log4j.xml
Log:
[SOAG-92] Add stateless files for the purchase example.
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/pom.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/pom.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/pom.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,60 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.overlord.cdl.samples</groupId>
+ <artifactId>jbossesb-stateless-creditAgency</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jboss-esb</packaging>
+ <name>Overlord::CDL::Samples::Stateless::CreditAgency</name>
+ <url>http://www.jboss.org/overlord</url>
+
+ <parent>
+ <groupId>org.jboss.soa.overlord.cdl</groupId>
+ <artifactId>samples</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4j.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.overlord.cdl.runtime</groupId>
+ <artifactId>cdl-runtime-jbossesb</artifactId>
+ <version>${cdl.jbossesb.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>creditAgency-stateless</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>
+ </plugins>
+ </build>
+
+</project>
+
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/CreditAgencyDecision.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/CreditAgencyDecision.java (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/CreditAgencyDecision.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -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 com.acme.services.creditAgency;
+
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.Decision;
+
+/**
+ * @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/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckInvalidMessageAction.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -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 com.acme.services.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.XMLUtils;
+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);
+
+ return(message);
+ }
+
+}
+
+
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/java/com/acme/services/creditAgency/SetCreditCheckResponseMessageAction.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -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 com.acme.services.creditAgency;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.XMLUtils;
+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/stateless/src/main/resources/META-INF/deployment.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/deployment.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/deployment.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,7 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=overlord-cdl-runtime.esb</depends>
+ <depends>jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency</depends>
+ <depends>jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency1</depends>
+ <depends>jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency2</depends>
+ <depends>jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency3</depends>
+</jbossesb-deployment>
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/jboss-esb.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/jboss-esb.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/META-INF/jboss-esb.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,77 @@
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5000">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" jndi-URL="localhost" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" name="JBossMQ">
+ <jms-bus busid="busId1">
+ <jms-message-filter dest-name="queue/esb-stateless-creditAgency" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId2">
+ <jms-message-filter dest-name="queue/esb-stateless-creditAgency1" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId3">
+ <jms-message-filter dest-name="queue/esb-stateless-creditAgency2" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId4">
+ <jms-message-filter dest-name="queue/esb-stateless-creditAgency3" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_CreditAgency">
+ <listeners>
+ <jms-listener busidref="busId1" maxThreads="1" name="esb-stateless-creditAgency"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SwitchAction">
+ <property name="serviceDescriptionName" value="{org.pi4soa.purchase.purchasegoods}PurchaseGoodsProcess-CreditAgency"/>
+ <property name="conversationType" value="overlord.cdl.samples.Common at CreditAgency"/>
+ <property name="paths">
+ <case service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__1">
+ <message type="CreditCheckRequest"/>
+ </case>
+ </property>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_CreditAgency__1">
+ <listeners>
+ <jms-listener busidref="busId2" maxThreads="1" name="esb-stateless-creditAgency1"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.ReceiveMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckRequest"/>
+ </action>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.IfAction">
+ <property name="paths">
+ <if service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__2" decision-class="com.acme.services.creditAgency.CreditAgencyDecision"/>
+ <else service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_CreditAgency__3"/>
+ </property>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_CreditAgency__2">
+ <listeners>
+ <jms-listener busidref="busId3" maxThreads="1" name="esb-stateless-creditAgency2"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SendMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckOk"/>
+ <property name="clientRole" value="Store"/>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_CreditAgency__3">
+ <listeners>
+ <jms-listener busidref="busId4" maxThreads="1" name="esb-stateless-creditAgency3"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SendMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckInvalid"/>
+ <property name="clientRole" value="Store"/>
+ </action>
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/jbmq-queue-service.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/jbmq-queue-service.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/jbmq-queue-service.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+</mbean>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency1">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+</mbean>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency2">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+</mbean>
+<mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.gen.destination:service=Queue,name=esb-stateless-creditAgency3">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+</mbean>
+</server>
Added: cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/log4j.xml
===================================================================
--- cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/log4j.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/common/creditAgency/stateless/src/main/resources/log4j.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE" class="org.apache.log4j.FileAppender">
+ <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+ <param name="File" value="./creditAgency.log"/>
+ <param name="Append" value="false"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+ <!-- Rollover at the top of each hour
+ <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
+ -->
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+
+ <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+ <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
+ -->
+ </layout>
+ </appender>
+
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
+ <category name="org.apache">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
+ <category name="org.jboss.serial">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
+ <category name="org.jgroups">
+ <priority value="WARN"/>
+ </category>
+
+ <!-- Limit the jacorb category to WARN as its INFO is verbose -->
+ <category name="jacorb">
+ <priority value="WARN"/>
+ </category>
+
+
+ <!-- Limit the JSR77 categories -->
+ <category name="org.jboss.management">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit Axis based webservice category -->
+ <category name="org.jboss.webservice">
+ <priority value="DEBUG"/>
+ </category>
+ <category name="org.jboss.axis">
+ <priority value="INFO"/>
+ </category>
+
+ <category name="org.milyn">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.delivery.SmooksXML">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.delivery.serialize.Serializer">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.cdr.XMLConfigDigester">
+ <priority value="INFO"/>
+ </category>
+
+ <category name="org.jboss.soa.overlord">
+ <priority value="DEBUG" />
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <priority value="INFO" />
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+
+</log4j:configuration>
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/pom.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/pom.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/pom.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,58 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.overlord.cdl.samples</groupId>
+ <artifactId>jbossesb-stateless-purchasing</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jboss-esb</packaging>
+ <name>Overlord::CDL::Samples::Stateless::Purchasing</name>
+ <url>http://www.jboss.org/soag</url>
+
+ <parent>
+ <groupId>org.jboss.soa.overlord.cdl</groupId>
+ <artifactId>samples</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4j.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.overlord.cdl.runtime</groupId>
+ <artifactId>cdl-runtime-jbossesb</artifactId>
+ <version>${cdl.jbossesb.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>purchasing-stateless</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy</id>
+ <phase>install</phase>
+ <configuration>
+ <tasks>
+ <!--copy file="target/purchasing-stateless.esb" todir="${deploy.dir}" overwrite="true" /-->
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/PurchaseGoods.java
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/PurchaseGoods.java (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/PurchaseGoods.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,42 @@
+/*
+ * 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 com.acme.services.broker;
+
+import java.io.Serializable;
+
+import org.jboss.soa.overlord.jbossesb.stateful.actions.Service;
+
+
+ at Service(name="{http://www.jboss.org/overlord/purchase}Store", conversationType="overlord.cdl.samples.Purchasing at Store", root=true)
+public class PurchaseGoods implements Serializable{
+
+ private long id;
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+
+
+}
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyFailedMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyFailedMessageAction.java (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyFailedMessageAction.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,56 @@
+/*
+ * 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 com.acme.services.broker;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.XMLUtils;
+import org.w3c.dom.Node;
+
+/*
+ * @author gary
+ */
+public class SetBuyFailedMessageAction extends AbstractActionLifecycle {
+
+ private static Logger logger = Logger.getLogger(SetBuyFailedMessageAction.class);
+
+ private ConfigTree config=null;
+
+ public SetBuyFailedMessageAction(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("<BuyFailed id=\"" + idValue +"\"></BuyFailed>");
+
+ logger.info("Updated buy message: "+message);
+
+ return(message);
+ }
+
+}
+
+
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyResponseMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyResponseMessageAction.java (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetBuyResponseMessageAction.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -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 com.acme.services.broker;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.XMLUtils;
+import org.w3c.dom.Node;
+
+public class SetBuyResponseMessageAction extends AbstractActionLifecycle {
+
+ private static Logger logger = Logger.getLogger(SetBuyResponseMessageAction.class);
+
+ private ConfigTree config;
+
+ public SetBuyResponseMessageAction(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("<BuyConfirmed id=\"" + idValue +"\"></BuyConfirmed>");
+
+ logger.info("Updated buy message: "+message);
+
+ return(message);
+ }
+
+
+}
+
+
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetCreditCheckRequestMessageAction.java
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetCreditCheckRequestMessageAction.java (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/java/com/acme/services/broker/SetCreditCheckRequestMessageAction.java 2009-03-13 07:34:38 UTC (rev 538)
@@ -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 com.acme.services.broker;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.overlord.jbossesb.XMLUtils;
+import org.w3c.dom.Node;
+
+public class SetCreditCheckRequestMessageAction extends AbstractActionLifecycle {
+
+ private static Logger logger = Logger.getLogger(SetCreditCheckRequestMessageAction.class);
+
+ private ConfigTree config;
+
+ public SetCreditCheckRequestMessageAction(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("<CreditCheckRequest id=\"" + idValue +"\"></CreditCheckRequest>");
+
+ logger.info("Updated credit check request message: "+message);
+
+ return(message);
+ }
+
+}
+
+
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/deployment.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/deployment.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/deployment.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,8 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:deployment=overlord-cdl-runtime.esb</depends>
+ <depends>org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__3</depends>
+ <depends>org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__2</depends>
+ <depends>org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__1</depends>
+ <depends>org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store</depends>
+ <depends>org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_checkCredit</depends>
+</jbossesb-deployment>
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/jboss-esb.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/jboss-esb.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/META-INF/jboss-esb.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,107 @@
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5000">
+ <providers>
+ <jms-provider connection-factory="ConnectionFactory" jndi-URL="localhost" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" name="JBossMQ">
+ <jms-bus busid="busId1">
+ <jms-message-filter dest-name="queue/org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId2">
+ <jms-message-filter dest-name="queue/org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__1" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId3">
+ <jms-message-filter dest-name="queue/org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__2" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId4">
+ <jms-message-filter dest-name="queue/org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__3" dest-type="QUEUE"/>
+ </jms-bus>
+ <jms-bus busid="busId5">
+ <jms-message-filter dest-name="queue/org_pi4soa_purchase_purchasegoods_checkCredit" dest-type="QUEUE"/>
+ </jms-bus>
+ </jms-provider>
+ </providers>
+ <services>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_Store">
+ <listeners>
+ <jms-listener busidref="busId1" maxThreads="1" name="org.pi4soa.purchase.purchasegoods-PurchaseGoodsProcess_Store"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.actions.stateless.SwitchAction">
+ <property name="serviceDescriptionName" value="{org.pi4soa.purchase.purchasegoods}PurchaseGoodsProcess-Store"/>
+ <property name="conversationType" value="overlord.cdl.samples.Purchasing at Store"/>
+ <property name="paths">
+ <case service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_Store__1">
+ <message type="BuyRequest"/>
+ </case>
+ </property>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_Store__1">
+ <listeners>
+ <jms-listener busidref="busId2" maxThreads="1" name="org.pi4soa.purchase.purchasegoods-PurchaseGoodsProcess_Store__1"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.actions.stateless.ReceiveMessageAction">
+ <property name="operation" value="buy"/>
+ <property name="messageType" value="BuyRequest"/>
+ </action>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SendMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckRequest"/>
+ <property name="serviceCategory" value="org.pi4soa.purchase.purchasegoods"/>
+ <property name="serviceName" value="PurchaseGoodsProcess_CreditAgency"/>
+ <property name="responseServiceCategory" value="org.pi4soa.purchase.purchasegoods"/>
+ <property name="responseServiceName" value="checkCredit"/>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_Store__2">
+ <listeners>
+ <jms-listener busidref="busId3" maxThreads="1" name="org.pi4soa.purchase.purchasegoods-PurchaseGoodsProcess_Store__2"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.ReceiveMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckOk"/>
+ </action>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SendMessageAction">
+ <property name="operation" value="buy"/>
+ <property name="messageType" value="BuyConfirmed"/>
+ <property name="clientRole" value="Buyer"/>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="PurchaseGoodsProcess_Store__3">
+ <listeners>
+ <jms-listener busidref="busId4" maxThreads="1" name="org.pi4soa.purchase.purchasegoods-PurchaseGoodsProcess_Store__3"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.ReceiveMessageAction">
+ <property name="operation" value="checkCredit"/>
+ <property name="messageType" value="CreditCheckInvalid"/>
+ </action>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SendMessageAction">
+ <property name="operation" value="buy"/>
+ <property name="messageType" value="BuyFailed"/>
+ <property name="clientRole" value="Buyer"/>
+ </action>
+ </actions>
+ </service>
+ <service category="org.pi4soa.purchase.purchasegoods" name="checkCredit">
+ <listeners>
+ <jms-listener busidref="busId5" maxThreads="1" name="org.pi4soa.purchase.purchasegoods-checkCredit"/>
+ </listeners>
+ <actions>
+ <action class="org.jboss.soa.overlord.jbossesb.stateless.actions.SwitchAction">
+ <property name="paths">
+ <case service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_Store__2">
+ <message type="CreditCheckOk"/>
+ </case>
+ <case service-category="org.pi4soa.purchase.purchasegoods" service-name="PurchaseGoodsProcess_Store__3">
+ <message type="CreditCheckInvalid"/>
+ </case>
+ </property>
+ </action>
+ </actions>
+ </service>
+ </services>
+</jbossesb>
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/jbmq-queue-service.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/jbmq-queue-service.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/jbmq-queue-service.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,32 @@
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__3">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__2">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store__1">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_PurchaseGoodsProcess_Store">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="org.pi4soa.purchase.purchasegoods.destination:service=Queue,name=org_pi4soa_purchase_purchasegoods_checkCredit">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+ </mbean>
+</server>
Added: cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/log4j.xml
===================================================================
--- cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/log4j.xml (rev 0)
+++ cdl/trunk/samples/jbossesb/purchasing/store/stateless/src/main/resources/log4j.xml 2009-03-13 07:34:38 UTC (rev 538)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+ | For more configuration infromation and examples see the Jakarta Log4j
+ | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE" class="org.apache.log4j.FileAppender">
+ <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+ <param name="File" value="./purchasing.log"/>
+ <param name="Append" value="false"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+ <!-- Rollover at the top of each hour
+ <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
+ -->
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
+
+ <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+ <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
+ -->
+ </layout>
+ </appender>
+
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <!--errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/-->
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
+ <category name="org.apache">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
+ <category name="org.jboss.serial">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
+ <category name="org.jgroups">
+ <priority value="WARN"/>
+ </category>
+
+ <!-- Limit the jacorb category to WARN as its INFO is verbose -->
+ <category name="jacorb">
+ <priority value="WARN"/>
+ </category>
+
+
+ <!-- Limit the JSR77 categories -->
+ <category name="org.jboss.management">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- Limit Axis based webservice category -->
+ <category name="org.jboss.webservice">
+ <priority value="DEBUG"/>
+ </category>
+ <category name="org.jboss.axis">
+ <priority value="INFO"/>
+ </category>
+
+ <category name="org.milyn">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.delivery.SmooksXML">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.delivery.serialize.Serializer">
+ <priority value="INFO"/>
+ </category>
+ <category name="org.milyn.cdr.XMLConfigDigester">
+ <priority value="INFO"/>
+ </category>
+
+ <category name="org.jboss.soa.overlord">
+ <priority value="DEBUG" />
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <priority value="INFO" />
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+
+</log4j:configuration>
More information about the overlord-commits
mailing list