-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Configuring PickedLink to work with Cassandra database using
PostPosted: Tue Feb 28, 2012 8:50 am 
Newbie

Joined: Tue Feb 28, 2012 4:06 am
Posts: 1
Hi,

I am trying to Configuring jbos 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

Code:
<!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>


Top
 Profile  
 
 Post subject: Re: Configuring PickedLink to work with Cassandra database using
PostPosted: Tue Feb 28, 2012 1:05 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
What's the OSG platform ?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.