-
Jan 18th, 2006, 07:50 AM
#1
jBPM: No datasource on schema-creation
Just tried to get started with spring-jbpm (from cvs), jBPM 3.0.2 and hibernate 3.1.1.
I had problems on spring configuration of jBPM in conjunction with JbpmSchema#createSchema invocation. I always got a "No local data source" exception.
Now I tracked down the problem:
the createSchema() method tries to get a connection via org.hibernate.connection.ConnectionProviderFactory. This one instantiates a new org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider instance. This instance tries to resolve the data source via LocalSessionFactoryBean.getConfigTimeDataSource().
The point is, that a DataSource configured to org.springframework.orm.hibernate3.LocalSessionFac toryBean could not be resolved for that new instance, because the configTimeDataSource property is not available anymore (reset after initialization).
Now, in order to create the jBpm schema, one has to supply database parameters in the hibernate properties and omit the data source.
Note, that accessing a created schema works with a spring configured data source.
Maybe someone has a solution for this issue?
Regards,
Andreas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules