"unnis" wrote :
|
| Since Hibernate and Kodo-jdo takes the connection using datasource look up in their own code, I won't be able to change the database there. So this has to managed in the datasource level.
>From what i know, Hibernate allows the schema to be set through one of its APIs.
| Configuration cfg = new Configuration();
| cfg.setProperty("hibernate.default_schema", "XXX");
| SessionFactory sf = cfg.configure().buildSessionFactory();
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151902#4151902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151902
Hi Ronald,
Thanks for the reply.
We are using JBPM timer for long running processes. This timer creation node is a wait node so data gets persisted to the DB.
We want data to be persisted for short running processes as well. There we can not use async nodes/actions as it affects execution sequence of nodes and we can not afford that. Also using wait nodes everywhere will degrade performance as it needs extra effort of triggering the workflows from outside (effort in creating and closing jbpmContext every time). Currently all nodes are executed one by one automatically.
Is there any other way to persist process Instance data to database?
Thanks,
Archana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151895#4151895
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151895
I can also do the same thing if my application takes the database connection using ds.getConnection()
But in my case I am using Hibernate and kodo-jdo. Both cases i need a managed connection, so I am using the same -ds file for this. Finally all connections will come from same connection pool.
Since Hibernate and Kodo-jdo takes the connection using datasource look up in their own code, I won't be able to change the database there. So this has to managed in the datasource level.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151891#4151891
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151891