Hi all,
I'm confused about hibernate configuration..
Trouble: Hibernate configuration in order to use datasources under JBoss A.S.-4.0.5.ga.. and concurrent transactions (made by multiple users)
I have this software:
- MS Windows XP Pro SP2 / MS Windows 2003R2 Enterprise Edition SP1
- JBoss A.S.-4.0.5.ga ("all" instance)
- MySql-5.0.24a-community-nt
I'm using "hibernate3.jar" (from Jboss "\server\all\lib" folder), and meta-inf says that is 3.2.0.ga version.
I created a datasource file under "server\all\deploy" in order to have database connection pooling.
I have a lot of Stateless Session EJB (please note that I don't use annotations, doclet and so on.. I still use ejb-jar.xml etc etc.. I think I'm using EJB2 and not EJB3. I don't use annotations for EJB and I would like to do NOT use them for Hibernate if possible..).
My application is made by these pieces of code:
servlets which call EJBs: my EJBs call DAOs in order to save/update/delete/insert data on db.
I need to use transaction inside my EJB methods..(commit, rollback).
Multiple users can call one (the same) method at a/one point/time..... at once.. usually via servlets.
Have you got any example of how to configure hibernate for this... or could you point me to a link with a clarifying example.. please?
Any help would be greatly appreciated.. (Sorry for english.. )
Thanks all,
Anna
Start Free Trial