Apr 16, 2006

JBoss jBPM + Hibernate + Derby 連携方法をメモ

JBoss jBPM は DBMS に情報を格納することができる。 この機能をお手軽に試すために Derby と連携させてみた。

jbpm.properties

クラスパスルートに jbpm.properties を作成する。

jbpm.hibernate.cfg.xml=hibernate.cfg.xml

hibernate.cfg.xml

クラスパスルートに hibernate.cfg.xml を作成する。

<?xml version="1.0" ?>

<!DOCTYPE hibernate-configuration PUBLIC 
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd" >

<hibernate-configuration>
  <session-factory>
    <property name="connection.driver_class">
      org.apache.derby.jdbc.EmbeddedDriver
    </property>
    <property name="connection.url">jdbc:derby:derbyDB</property>
    <property name="dialect">
      org.hibernate.dialect.DerbyDialect
    </property>
    <property name="show_sql">true</property>
    <property name="use_outer_join">true</property>
    <mapping resource="DummyEntity.hbm.xml" />
  </session-factory>
</hibernate-configuration>

TrackBack ping me at
http://www.in-vitro.jp/blog/index.cgi/Library/20060416_01.trackback
Post a comment

writeback message: Ready to post a comment.