0 Replies Latest reply: Feb 28, 2012 9:36 AM by tom harel RSS

Configuring PickedLink to work with Cassandra database using the OSG platform

tom harel Newbie

Hi,

 

I am trying to Configuring PickedLink to work with Cassandra database using the OSG platform.

In the example code from the PickedLink site the is no persistence.xml to re-configure . only a hibernate.cfg.xml file (content below).

How can configure the OSG needed parameters using this existing files ?

 

Thanks

Tomer

 

 

 

<!DOCTYPE hibernate-configuration PUBLIC

   "-//Hibernate/Hibernate Configuration DTD//EN"

   "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

   <session-factory>

 

 

       <property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>

 

       <property name="show_sql">false</property>

       <property name="cache.use_second_level_cache">true</property>

       <property name="cache.use_query_cache">true</property>

 

 

       <property name="current_session_context_class">thread</property>

 

       <!--<property name="connection.datasource"></property>-->

      

       <property name="hibernate.connection.url">jdbc:hsqldb:mem:unit-testing-jpa1</property>

       <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>

       <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>

       <property name="hibernate.hbm2ddl.auto">create-drop</property>

       <property name="hibernate.connection.username">sa</property>

       <property name="hibernate.connection.password"></property>

 

   </session-factory>

</hibernate-configuration>