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: Putting the Hibernate Session factory onto JNDI
PostPosted: Sat Jun 18, 2005 1:56 pm 
Beginner
Beginner

Joined: Wed Jun 15, 2005 2:00 pm
Posts: 38
Hi,

Has anyone succeeded in binding the Session Factory onto JNDI for Weblogic? The documentation in the reference is a bit sparse. Anyone knows where to get more detailed documentation on how to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 20, 2005 9:50 am 
Newbie

Joined: Fri Apr 16, 2004 11:48 am
Posts: 18
I am trying to setup the RAR JCA adapter with WL 81 and Hibernate 305. It used to work with 217 but does not with 305.
This is my connector file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC "-//Sun Microsystems, Inc.//DTD Connector 1.0//EN" "http://java.sun.com/dtd/connector_1_0.dtd">
<connector>
   <display-name>HibernateResourceAdapter</display-name>
   <vendor-name>Hibernate</vendor-name>
   <spec-version>1.0</spec-version>
   <eis-type>Hibernate Sessions</eis-type>
   <version>3.0</version>
   <license>
      <license-required>false</license-required>
   </license>
   <resourceadapter>
      <managedconnectionfactory-class>org.hibernate.impl.SessionFactoryImpl</managedconnectionfactory-class>
      <connectionfactory-interface>org.hibernate.SessionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>org.hibernate.jca.JCASessionFactoryImpl</connectionfactory-impl-class>
      <connection-interface>org.hibernate.Session</connection-interface>
      <connection-impl-class>org.hibernate.jca.JCASessionImpl</connection-impl-class>
      <transaction-support>XATransaction</transaction-support>
      <config-property>
         <config-property-name>Dialect</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         <config-property-value>org.hibernate.dialect.OracleDialect</config-property-value>
      </config-property>
      <config-property>
         <config-property-name>MapResources</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         <config-property-value>com/lgim/sample/vo/Clobby.hbm.xml</config-property-value>
      </config-property>
      <config-property>
         <config-property-name>DatasourceJndi</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         <config-property-value>jdbc/simoneTxDataSource"</config-property-value>
      </config-property>
      <config-property>
         <config-property-name>HibernateProperties</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         <config-property-value>hibernate.use_outer_join=true\nhibernate.show_sql=true\nhibernate.transaction.factory_class=WeblogicTransactionManagerLookup\nhibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory\njta.UserTransaction=UserTransaction\nhibernate.cache.provider_class=org.ehcache.hibernate.Provider</config-property-value>
      </config-property>
      <reauthentication-support>true</reauthentication-support>
   </resourceadapter>
</connector>


Could please anyone say what is the best way forward?

With hibernate 217 and this approach I did not needed to open and close Hibernate Transactions in my code inside CMT EJBs.

Many thanks!!!!!


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.