So, as an implementation example of all this (take in mind that ant is new stuff for me):
To allow switching between JMS and DB based messaging, we could use a jbpm.cfg.xml file
containing:
<jbpm-configuration>
| <jbpm-context>
| <!--DB based Messaging (begin) ==
| <service name="message"
factory="org.jbpm.msg.db.DbMessageService"/>
| == DB based Messaging (end) -->
| <!--JMS based Messaging (begin) ==
| <service name="message">
| <factory><bean
class="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl">
| <field name="connectionFactoryJndiName"><string
value="java:/XAConnectionFactory"/></field>
| <field name="destinationJndiName"><string
value="queue/JbpmJobQueue"/></field>
| </bean></factory>
| </service>
| == JMS based Messaging (end) -->
| ...
| </jbpm-context>
| </jbpm-configuration>
|
Now, how should we control what configuration to use? Could it be made using a property or
something so? The examples I've found are uncommenting sections in an unconditional
fashion. I think that this case is a little different, as we want to choose between two
configuration modes.
Perhaps having local configuration files (in some place like
local.config=${user.home}/jbpm/config ) should be simpler, and we could just try to use
those files if they exist?
Regards.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978998#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...