Author: jeff.yuchang
Date: 2008-06-23 02:58:46 -0400 (Mon, 23 Jun 2008)
New Revision: 51
Added:
trunk/samples/jbossesb/broker/src/main/resources/META-INF/deployment.xml
trunk/samples/jbossesb/broker/src/main/resources/META-INF/jboss-esb.xml
trunk/samples/jbossesb/broker/src/main/resources/hibernate.cfg.xml
trunk/samples/jbossesb/broker/src/main/resources/jbmq-queue-service.xml
trunk/samples/jbossesb/broker/src/main/resources/log4j.xml
Removed:
trunk/samples/jbossesb/broker/.classpath
trunk/samples/jbossesb/broker/conf/
Log:
[SOAG-12] Continuing..
Deleted: trunk/samples/jbossesb/broker/.classpath
===================================================================
--- trunk/samples/jbossesb/broker/.classpath 2008-06-23 06:48:16 UTC (rev 50)
+++ trunk/samples/jbossesb/broker/.classpath 2008-06-23 06:58:46 UTC (rev 51)
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
Added: trunk/samples/jbossesb/broker/src/main/resources/META-INF/deployment.xml
===================================================================
--- trunk/samples/jbossesb/broker/src/main/resources/META-INF/deployment.xml
(rev 0)
+++ trunk/samples/jbossesb/broker/src/main/resources/META-INF/deployment.xml 2008-06-23
06:58:46 UTC (rev 51)
@@ -0,0 +1,14 @@
+<jbossesb-deployment>
+ <depends>jboss.esb.gen.destination:service=Queue,name=esb-broker</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker_reply</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker1</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker2</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker3</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker4</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker5</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker6</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-broker7</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency1</depends>
+
<depends>jboss.esb.gen.destination:service=Queue,name=esb-creditAgency2</depends>
+</jbossesb-deployment>
Copied: trunk/samples/jbossesb/broker/src/main/resources/META-INF/jboss-esb.xml (from rev
49, trunk/samples/jbossesb/broker/conf/broker/jboss-esb.xml)
===================================================================
--- trunk/samples/jbossesb/broker/src/main/resources/META-INF/jboss-esb.xml
(rev 0)
+++ trunk/samples/jbossesb/broker/src/main/resources/META-INF/jboss-esb.xml 2008-06-23
06:58:46 UTC (rev 51)
@@ -0,0 +1,545 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc...
+ parameterReloadSecs="5000">
+
+ <providers>
+ <jms-provider name="JBossMQ"
connection-factory="ConnectionFactory"
+ jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+ jndi-URL="localhost">
+ <!-- To be done -->
+ </jms-provider>
+
+ </providers>
+ <services>
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+
+ <!-- This action routes incoming messages to the appropriate
+ service descriptor for the state of the session. The message is
+ only routed to the service descriptor if the session associated
+ with the message's identity has the service descriptor on its
+ schedule. The only exception to this is where the session does
+ not yet exist, and the message being routed will initiate the
+ session - not sure yet if this needs to be flagged specifically. -->
+
+ <action
class="org.jboss.soa.esb.actions.conversation.MessageRouterAction"
+ process="process" name="s0-1">
+ <property name="paths">
+ <route service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ <message type="enquiry" />
+ </route>
+ <route service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.5" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ <message type="buy" />
+ <message type="cancel" />
+ </route>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- Link to service description is made by the 'serviceType' property in
+ the CreateSessionAction. This could be associated with the session pojo,
+ but means that pojo might then not be able to be shared in other sessions.
+ This 'serviceType' property is only relevant for the 'root'
choreography,
+ so CreateSessionAction associated with a sub-choreography would not need
+ to define this property. -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.CreateSessionAction"
+ process="process" name="s1-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="serviceType"
value="{http://www.jboss.org/jbossesb/samples/conversation}BrokerPar...
/>
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s1-2">
+ <property name="operation" value="makeEnquiry" />
+ <property name="messageType" value="enquiry" />
+ <property name="clientEPR" value="buyer" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- Possibly this following service descriptor does not need a
RetrieveSessionAction
+ as it is the target of a 'control link', and therefore could carry the session
+ id (internal id used with hibernate) to retrieve the session in the first
+ conversation based action. However we also need to be able to remove the
+ service descriptor from the schedule. If there is a way for the action to
+ know that it is the first 'conversation based' action in the pipeline, then
+ possibly this fact could be used to remove the service descriptor (as
+ long as it can get hold of its own service category and name -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.1" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action class="org.jboss.soa.esb.actions.conversation.WhileAction"
+ process="process" name="s2-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="paths">
+ <while decision-method="isCreditValid"
+ service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.2"
+ immediate="true" />
+ <exit service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.3"
+ immediate="true" />
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- This service descriptor represents the internal part of the while loop
+ and due to only having one simple action, it ends with the state transition
+ back to the service descriptor that contains the controlling 'WhileAction'
-->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.2" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action class="org.jboss.soa.esb.actions.conversation.PerformAction"
+ process="process" name="s3-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="serviceName" value="RequestForQuote.main"
/>
+ <property name="bindDetails" >
+
+ <!-- Not sure of the xpath expression syntax when accessing
+ properties on a context object, but hopefully gets the
+ purpose across. CDL uses custom XPath functions, but would
+ be better if we could do without custom functions. -->
+
+ <bind from-expression="/suppliers[/supplierIndex]"
+ to-variable="supplier" />
+ </property>
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.ScheduleStateAction"
+ process="process" name="s3-2">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="serviceName" value="ESBBrokerProcess.main.1"
/>
+ <property name="immediate" value="true" />
+ </action>
+ </actions>
+ </service>
+
+ <!-- Need to decide how to specify when expression and other properties. Should
+ they be in a single property (same format as if, switch, etc) or should the
+ information just be in separate properties? -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.3" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action class="org.jboss.soa.esb.actions.conversation.WhenAction"
+ process="process" name="s4-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="paths">
+ <when expression="allQuotesReceived"
+ service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.4" />
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.4" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action class="org.jboss.soa.esb.actions.conversation.GetStateAction"
+ process="process" name="s4-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="variable" value="quotes" />
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s4-2">
+ <property name="operation" value="makeEnquiry" />
+ <property name="messageType" value="quoteList" />
+ <property name="clientEPR" value="buyer" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.ScheduleStateAction"
+ process="process" name="s4-3">
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="serviceName" value="ESBBrokerProcess.main.5"
/>
+ <property name="immediate" value="false" />
+ </action>
+ </actions>
+ </service>
+
+ <!-- RetrieveSessionAction put in here, as this is the target of a
+ 'message link', and therefore will be triggered by the receipt of an
+ external message. Depends whether client will actually invoke this service,
+ or whether it would go through the 'behavioural gateway' - in which case
+ the Retrieve may not be necessary, as the gateway could forward the relevant
+ internal session id.
+ The service name and category in the retrieve may be redundant if the
+ action can determine the service descriptor it is container within. -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.5" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.RetrieveSessionAction"
+ process="process" name="s5-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="serviceName" value="ESBBrokerProcess.main.5"
/>
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ <action class="org.jboss.soa.esb.actions.conversation.SwitchAction"
+ process="process" name="s5-2">
+ <property name="paths">
+ <case service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.7" >
+ <message type="buy" />
+ </case>
+ <case service-category="ESBBroker.BrokerParticipant"
+ service-name="ESBBrokerProcess.main.6" >
+ <message type="cancel" />
+ </case>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- Does not have a 'RetrieveSessionAction', as this is a 'control
link'.
+ Although even if message link, possible the ReceiveMessageAction could
+ remove the service descriptor from the schedule, if it knows that it is the
+ first conversation based action in the pipeline, and have access to the
+ service descriptor information. -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.6" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s6-1">
+ <property name="operation" value="cancel" />
+ <property name="messageType" value="cancel" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- This and the following action are potentially redundant. Instead of performing
+ a sub-session, it could just define the actions that are in that sub-session. The
+ way it has been modelled here reflects the sub-choreos in the model, but this is not
+ necessary to be able to check conformance. -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.7" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action class="org.jboss.soa.esb.actions.conversation.PerformAction"
+ process="process" name="s7-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.BrokerMain" />
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="serviceName" value="CompleteTransaction.main"
/>
+ <property name="immediate" value="true" />
+ <property name="joinServiceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="joinServiceName"
value="ESBBrokerProcess.main.8" />
+ <property name="bindDetails" >
+ <bind from-expression="/quotes[/selectedQuote]"
+ to-variable="quote" />
+ <bind from-expression="/suppliers[/selectedSupplier]"
+ to-variable="supplier" />
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="ESBBrokerProcess.main.8" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <!-- No actions - required to act as a join point for the performed sub-choreo
+ to prevent the session from completing and prematurely terminating the child
+ sessions.-->
+ </actions>
+ </service>
+
+ <!--
+ REQUEST FOR QUOTE SUB-CHOREOGRAPHY
+ -->
+
+ <!-- GPB TODO: Think about identities - as there will be multiple concurrent
+ RequestForQuote sub-sessions (one per supplier), then need to each have
+ unique key, probably based on supplier id. -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="RequestForQuote.main" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.CreateSessionAction"
+ process="process" name="s8-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.RequestForQuoteMain" />
+ </action>
+
+ <!-- NOTE: the service being sent the message is obtained by
+ xpath expression on the session's state. -->
+
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s8-2">
+ <property name="operation" value="getQuote" />
+ <property name="messageType" value="requestForQuote" />
+ <property name="serviceName" value="/supplier/serviceName"
/>
+ <property name="serviceCategory"
value="/supplier/serviceCategory" />
+ <property name="responseServiceName"
value="RequestForQuote.main.1" />
+ <property name="responseServiceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!-- message link - but possibly can deal with schedule and session
+ retrieval as previously discussed -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="RequestForQuote.main" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s9-1">
+ <property name="operation" value="getQuote" />
+ <property name="messageType" value="quote" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <!--
+ COMPLETE TRANSACTION SUB-CHOREOGRAPHY
+ -->
+
+ <service category="ESBBroker.BrokerParticipant"
name="CompleteTransaction.main" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.CreateSessionAction"
+ process="process" name="s10-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.CompleteTransactionMain" />
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s10-2">
+ <property name="operation" value="buy" />
+ <property name="messageType" value="purchaseDetails" />
+ <property name="clientEPR" value="buyer" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s10-3">
+ <property name="operation" value="checkCredit" />
+ <property name="messageType" value="creditInformation" />
+ <property name="serviceName"
value="CA.CompleteTransaction.main" />
+ <property name="serviceCategory"
value="ESBBroker.CreditAgencyParticipant" />
+ <property name="responseServiceName"
value="CompleteTransaction.main.1" />
+ <property name="responseServiceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="CompleteTransaction.main.1" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.RetrieveSessionAction"
+ process="process" name="s11-1">
+ <property name="session"
value="org.jboss.soa.esb.samples.broker.CompleteTransactionMain" />
+ <property name="serviceName"
value="CompleteTransaction.main.1" />
+ <property name="serviceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ <action class="org.jboss.soa.esb.actions.conversation.SwitchAction"
+ process="process" name="s11-2">
+ <property name="paths">
+ <case service-category="ESBBroker.BrokerParticipant"
+ service-name="CompleteTransaction.main.2" >
+ <message type="creditValid" />
+ </case>
+ <case service-category="ESBBroker.BrokerParticipant"
+ service-name="CompleteTransaction.main.GPB" >
+ <message type="creditInvalid" />
+ </case>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="CompleteTransaction.main.2" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s12-1">
+ <property name="operation" value="checkCredit" />
+ <property name="messageType" value="creditValid" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+
+ <!-- Intermediate actions to construct confirmation -->
+
+ <action
class="org.jboss.soa.esb.actions.conversation.GetVariableAction"
+ process="process" name="s12-2">
+ <property name="variable" value="confirmation" />
+ </action>
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s12-3">
+ <property name="operation" value="confirm" />
+ <property name="messageType" value="orderConfirmed" />
+ <property name="serviceName" value="/supplier/serviceName"
/>
+ <property name="serviceCategory"
value="/supplier/serviceCategory" />
+ <property name="responseServiceName"
value="CompleteTransaction.main.3" />
+ <property name="responseServiceCategory"
value="ESBBroker.BrokerParticipant" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="CompleteTransaction.main.3" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s13-1">
+ <property name="operation" value="confirm" />
+ <property name="messageType" value="bookingReference" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+
+ <!-- Intermediate actions to store booking reference and then
+ retrieve confirmation to be returned to the customer e.g. -->
+
+ <action
class="org.jboss.soa.esb.actions.conversation.GetVariableAction"
+ process="process" name="s13-2">
+ <property name="variable" value="confirmation" />
+ </action>
+
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s13-3">
+ <property name="operation" value="buy" />
+ <property name="messageType" value="orderConfirmed" />
+ <property name="clientEPR" value="buyer" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+ <service category="ESBBroker.BrokerParticipant"
name="CompleteTransaction.main.4" description="">
+ <listeners>
+ <!-- To be done -->
+ </listeners>
+ <actions mep="OneWay">
+ <action
class="org.jboss.soa.esb.actions.conversation.ReceiveMessageAction"
+ process="process" name="s14-1">
+ <property name="operation" value="checkCredit" />
+ <property name="messageType" value="creditInvalid" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+
+ <!-- Intermediate actions to build and return OrderRejected
+ message and return it to the customer -->
+
+ <action
class="org.jboss.soa.esb.actions.conversation.SendMessageAction"
+ process="process" name="s13-3">
+ <property name="operation" value="buy" />
+ <property name="messageType" value="orderRejected" />
+ <property name="clientEPR" value="buyer" />
+ <property name="identities" >
+ <identity type="primary" >
+ <token name="id" locator="//@id" />
+ </identity>
+ </property>
+ </action>
+ </actions>
+ </service>
+
+</jbossesb>
Added: trunk/samples/jbossesb/broker/src/main/resources/hibernate.cfg.xml
===================================================================
--- trunk/samples/jbossesb/broker/src/main/resources/hibernate.cfg.xml
(rev 0)
+++ trunk/samples/jbossesb/broker/src/main/resources/hibernate.cfg.xml 2008-06-23 06:58:46
UTC (rev 51)
@@ -0,0 +1,59 @@
+<!DOCTYPE hibernate-configuration SYSTEM
+"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<!--
+ 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,
+ @author JBoss Inc.
+-->
+<hibernate-configuration>
+ <session-factory>
+ <property name="hibernate.connection.driver_class">
+ org.hsqldb.jdbcDriver
+ </property>
+ <property name="hibernate.connection.url">
+ jdbc:hsqldb:hsql://localhost
+ </property>
+ <property name="hibernate.connection.username">
+ sa
+ </property>
+ <property name="hibernate.dialect">
+ org.hibernate.dialect.HSQLDialect
+ </property>
+
+ <!-- Use the C3P0 connection pool provider -->
+ <property name="hibernate.c3p0.min_size">5</property>
+ <property name="hibernate.c3p0.max_size">20</property>
+ <property name="hibernate.c3p0.timeout">300</property>
+ <property name="hibernate.c3p0.max_statements">50</property>
+ <property name="hibernate.c3p0.idle_test_period">3000</property>
+
+ <!-- Show and print nice SQL on stdout -->
+ <property name="show_sql">false</property>
+ <property name="format_sql">true</property>
+
+ <!-- List of annotationed classes (Internal conversation class)-->
+ <mapping class="org.jboss.soa.overlord.conversation.Session" />
+ <mapping class="org.jboss.soa.overlord.conversation.ScheduleItem"/>
+ <mapping class="org.jboss.soa.overlord.conversation.JoinState"/>
+ <mapping class="org.jboss.soa.overlord.conversation.Identity"/>
+ <mapping class="org.jboss.soa.overlord.conversation.EPRWrapper"/>
+
+ <!-- List of Business State class -->
+
+ </session-factory>
+</hibernate-configuration>
Added: trunk/samples/jbossesb/broker/src/main/resources/jbmq-queue-service.xml
===================================================================
--- trunk/samples/jbossesb/broker/src/main/resources/jbmq-queue-service.xml
(rev 0)
+++ trunk/samples/jbossesb/broker/src/main/resources/jbmq-queue-service.xml 2008-06-23
06:58:46 UTC (rev 51)
@@ -0,0 +1,77 @@
+<?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-broker">
+ <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-broker_reply">
+ <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-broker1">
+ <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-broker2">
+ <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-broker3">
+ <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-broker4">
+ <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-broker5">
+ <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-broker6">
+ <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-broker7">
+ <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-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-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-creditAgency2">
+ <depends optional-attribute-name="DestinationManager">
+ jboss.mq:service=DestinationManager
+ </depends>
+</mbean>
+
+</server>
Added: trunk/samples/jbossesb/broker/src/main/resources/log4j.xml
===================================================================
--- trunk/samples/jbossesb/broker/src/main/resources/log4j.xml
(rev 0)
+++ trunk/samples/jbossesb/broker/src/main/resources/log4j.xml 2008-06-23 06:58:46 UTC
(rev 51)
@@ -0,0 +1,244 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.10 2006/04/21 17:29:20 csuconic Exp $ -->
+
+<!--
+ | 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="./broker.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>
+
+ <!-- A size based file rolling appender
+ <appender name="FILE"
class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File"
value="${jboss.server.log.dir}/server.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%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>
+
+ <!-- ====================== -->
+ <!-- More Appender examples -->
+ <!-- ====================== -->
+
+ <!-- Buffer events and log them asynchronously
+ <appender name="ASYNC"
class="org.apache.log4j.AsyncAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <appender-ref ref="FILE"/>
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="SMTP"/>
+ </appender>
+ -->
+
+ <!-- EMail events to an administrator
+ <appender name="SMTP"
class="org.apache.log4j.net.SMTPAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Threshold" value="ERROR"/>
+ <param name="To" value="admin(a)myhost.domain.com"/>
+ <param name="From" value="nobody(a)myhost.domain.com"/>
+ <param name="Subject" value="JBoss Sever Errors"/>
+ <param name="SMTPHost" value="localhost"/>
+ <param name="BufferSize" value="10"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Syslog events
+ <appender name="SYSLOG"
class="org.apache.log4j.net.SyslogAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Facility" value="LOCAL7"/>
+ <param name="FacilityPrinting" value="true"/>
+ <param name="SyslogHost" value="localhost"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}]
%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Log events to JMS (requires a topic to be created)
+ <appender name="JMS"
class="org.apache.log4j.net.JMSAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="Threshold" value="ERROR"/>
+ <param name="TopicConnectionFactoryBindingName"
value="java:/ConnectionFactory"/>
+ <param name="TopicBindingName"
value="topic/MyErrorsTopic"/>
+ </appender>
+ -->
+
+ <!-- Log events through SNMP
+ <appender name="TRAP_LOG"
class="org.apache.log4j.ext.SNMPTrapAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="ImplementationClassName"
value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
+ <param name="ManagementHost" value="127.0.0.1"/>
+ <param name="ManagementHostTrapListenPort" value="162"/>
+ <param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
+ <param name="LocalIPAddress" value="127.0.0.1"/>
+ <param name="LocalTrapSendPort" value="161"/>
+ <param name="GenericTrapType" value="6"/>
+ <param name="SpecificTrapType" value="12345678"/>
+ <param name="CommunityString" value="public"/>
+ <param name="ForwardStackTraceWithTrap" value="true"/>
+ <param name="Threshold" value="DEBUG"/>
+ <param name="ApplicationTrapOID"
value="1.3.6.1.4.1.24.12.10.22.64"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
value="%d,%p,[%t],[%c],%m%n"/>
+ </layout>
+ </appender>
+ -->
+
+ <!-- Emit events as JMX notifications
+ <appender name="JMX"
class="org.jboss.monitor.services.JMXNotificationAppender">
+ <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+
+ <param name="Threshold" value="WARN"/>
+ <param name="ObjectName"
value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m"/>
+ </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>
+
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <priority value="INFO" />
+ <appender-ref ref="CONSOLE"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+ <!-- Clustering logging -->
+ <!-- Uncomment the following to redirect the org.jgroups and
+ org.jboss.ha categories to a cluster.log file.
+
+ <appender name="CLUSTER"
class="org.jboss.logging.appender.RollingFileAppender">
+ <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File"
value="${jboss.server.log.dir}/cluster.log"/>
+ <param name="Append" value="false"/>
+ <param name="MaxFileSize" value="500KB"/>
+ <param name="MaxBackupIndex" value="1"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
+ </layout>
+ </appender>
+ <category name="org.jgroups">
+ <priority value="DEBUG" />
+ <appender-ref ref="CLUSTER"/>
+ </category>
+ <category name="org.jboss.ha">
+ <priority value="DEBUG" />
+ <appender-ref ref="CLUSTER"/>
+ </category>
+ -->
+
+</log4j:configuration>