Advertisement

01.16.2008 at 06:36AM PST, ID: 23087000
[x]
Attachment Details

Hibernate configuration in order to use datasources under JBoss A.S.-4.0.5.ga.. and concurrent transactions (made by multiple users)

Asked by spice_stellina in Java Programming Language, Jboss Application Server, J2EE Frameworks

Tags: hibernate configuration

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,
AnnaStart Free Trial
[+][-]01.16.2008 at 09:35AM PST, ID: 20674030

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.16.2008 at 01:15PM PST, ID: 20676225

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.16.2008 at 02:32PM PST, ID: 20676904

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.17.2008 at 03:14PM PST, ID: 20686535

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.18.2008 at 12:25AM PST, ID: 20688736

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Programming Language, Jboss Application Server, J2EE Frameworks
Tags: hibernate configuration
Sign Up Now!
Solution Provided By: ramazanyich
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628