i have read the articles...ok ...
I switch on ContainerManged persistence (use this data source in container managed persistence) in Websphere console.
i set
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
<property name="current_session_context_class">jta</property>
<property name="transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
or (according reference manual is also possible to use it)
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
and got
org.hibernate.HibernateException: Unable to locate current JTA transaction
which is realy similar to same issue,
http://forum.hibernate.org/viewtopic.php?t=942973
there are couple things which are not clear
- how could i set CMT / BMT...is it only in hibernate.cfg.xml or also switch or something similar on websphere server ?
- there is something about type of transaction, getCurrentSession is not working when type "Supports", "Not Supported". Where i can set this type of transaction.
thanks for your time guys, i realy want to use it in my next project but can't get over