[jboss-dev-forums] [Design of JBoss ESB] - Re: Content-based routing
daniel.brum@jboss.com
do-not-reply at jboss.com
Sun Jul 23 15:51:57 EDT 2006
Dave, that is all basically done in the configuration of the end-points. Right now, in the trunk of SVN, you can configure a JMS, FIle or SQL table end-points. Those end-points are configurable by way of the paramter file, a sample of which you can see in the File Test shipped with Alpha1. Those end-points, have an Action class that will be invoked. I think right now, you should start to look at the Action/Processor classes as the starting point for your tests. Please use the Trunk though, what is in the Alpha has been re-factored and changed a lot since then. Here is a sample Parameter config which shows what I am talking about that will be included as part of the new docs for the next Beta release:
| <ListenOnJMS
| parmsReloadSecs="60"
| >
| <CreditRequest
| actionClass="org.jboss.soa.esb.samples.loanbroker.actions.ProcessCreditRequest"
| maxThreads="1"
| listenQueue="queue/A"
| listenMsgSelector="sample_loanbroker_servicecode='creditRequest'"
| >
|
| <NotificationList type="OK">
| <target class="NotifyEmail"
| from="ILoveLucy at jbos.com"
| sendTo="bill at microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- completed successfully"
| />
| </NotificationList>
|
| <NotificationList type="err">
| <target class="NotifyEmail"
| from="ILoveLucy at jboss.com"
| sendTo="bill at microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- had ERRORS"
| />
| </NotificationList>
| </CreditRequest>
|
| <CreditResponse
| actionClass="org.jboss.soa.esb.samples.loanbroker.actions.ProcessCreditResponse"
| maxThreads="1"
| listenQueue="queue/A"
| listenMsgSelector="sample_loanbroker_servicecode='creditResponse'"
| >
|
| <NotificationList type="OK">
| <target class="NotifyEmail"
| from="ILoveLucy at jbos.com"
| sendTo="bill at microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- completed successfully"
| />
| </NotificationList>
|
| <NotificationList type="err">
| <target class="NotifyEmail"
| from="ILoveLucy at jboss.com"
| sendTo="bill at microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- had ERRORS"
| />
| </NotificationList>
| </CreditResponse>
| </ListenOnJMS>
|
Hope this points you in the right direction.
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960192#3960192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960192
More information about the jboss-dev-forums
mailing list