"foreverman" wrote : 
  | I think it should use only sessionFactoryJndiName or dataSourceJndiName 
configuration,not both. That's because sessionFactory configuration alrealy 
includes datasource information, like this:
  | 
  | But when i use sessionFactory instead of dataSource like above 
configuration, it seems that system can not load jbpm hibernate mapping files. 
how do your guys do that?

Right, makes sense but the documentation says otherwise :-)

To deploy the hibernate stuff, I modified the jbpm-3.2.jar with the following:
- renamed to jbpm.har
- added a jboss-service.xml file in the META-INF directory with the following 
content:
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <server>
  | 
  |   <mbean code="org.jbpm.db.jmx.JbpmService"
  |      name="jboss.jbpm:name=DefaultJbpm,service=JbpmService"
  |      description="Default jBPM Service">
  |     <attribute name="JndiName">java:/jbpm/Configuration</attribute>
  |     <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>
  |     <depends>jboss.har:service=Hibernate</depends>
  |   </mbean>
  | 
  |   <mbean code="org.jboss.hibernate.jmx.Hibernate" 
name="jboss.har:service=Hibernate">
  |     <attribute name="DatasourceName">java:/JbpmDS</attribute>
  |     <attribute 
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  |     <attribute 
name="Dialect">org.hibernate.dialect.Oracle9Dialect</attribute>
  |     <attribute 
name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
  |     <!-- attribute name="ShowSqlEnabled">true</attribute -->
  |     <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends>
  |   </mbean>
  | </server>
  | 

which start 2 services: the Jbpm configuration service and the Hibernate 
service. The hibernate service will deploy the Har file with the given 
parameters. Note that by doing this, the hibernate.properties and 
hibernate.cfg.xml become obsolete.

Hope this helps.
- Anthony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937170#3937170

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937170


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to