Hello.
During my tests, I needed to change some config files, like hibernate.cfg.xml or
jbpm.cfg.xml. For example, when I want to use an Oracle database as backend, I need to
change the hibernate.cfg.xml file (that eventually gets bundled into the ear file). When I
want to use the JMS based message service, I also need to setup the jbpm.cfg.xml file. I
think that perhaps a good way to achieve this could be to use properties that can be
overriden in the local build.properties file.
But for example, when I want to use the DB based message service, I have to write, in the
service tag:
<service name="message"
| factory="org.jbpm.msg.db.DbMessageServiceFactory"/>
and to use the JMS based one:
<service name="message">
| <factory>
| <bean class="org.jbpm.msg.jms.JmsMessageServiceImpl">
| <field name="connectionFactoryJndiName">
| <string value="java:XAConnectionFactory"/>
| </field>
| <field name="destinationJndiName">
| <string value="queue/JbpmJobQueue"/>
| </field>
| </bean>
| </factory>
| </service>
This seems a difficult case to be solved using build properties if we want the ant targets
to be not aware of how the services are, or what parameters they need. What I want to
mean is that we would need to make the ant target know that a JMS Message service needs
those field names, that could be coded using properties. Perhaps we should need a target
for every different kind of service.
A better approach could be to have different XML excerpts, one for any kind of service
and just assemble all together to generate the jbpm.cfg.xml file in build time, controlled
using build properties that could be overriden.
Well, perhaps all this is already solved. I'm not even sure if you understand what
I'm trying to say (my english couldn't be worse), but I think that there should be
a way to particularize these kind of things without need to change any file under version
control.
BTW. Any comment about my previous post and that hypotetic new MDB. Is it actually needed?
Best Regards.
--
Manuel Teira
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978820#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...