Forums Register Login

Integrating Hibernate with EJB

+Pie Number of slices to send: Send
Hi all,
I am new to EJB and hibernae.

I am using Hibernate 3.0, Jboss 4.0.2, EJB 2.1.Can you please spend your valualbe time and tell me how to integrate EJB and Hibernate. we plan to use stateless session beans which will call the DAO.

I searched in google and i cant find any answer relavant to me.

1. What are the configurations need to be done in JBOSS. :?:
2. How to access the hibernate session in EJB. :?:

Please explain the steps clearly, So that this thread will be useful to me and others. And i have to solve this issue, As soon as possible. :?

thanks,
Vinoth
+Pie Number of slices to send: Send
I added the DAO in a utility project. And i tried to use the DAO from the EJB directly and i got tghe following error. I didnt do any configurations. Can you please tell me, what are the steps i have to follow.

+Pie Number of slices to send: Send
You have to include apache commons libs to solve the problem.

Follow a nice startup tutorial, that may help: http://www.hibernate.org/82.html
+Pie Number of slices to send: Send
can you please explain me in detail. thanks ..!
+Pie Number of slices to send: Send
 

vinoth subramaniam wrote:


The mentioned class is missing in classpath. That´s all. Add the class (or actually, the JAR file with the class) to the classpath and the problem should disappear. As the package name already hints, that class is part of the Apache Commons Collections API.
+Pie Number of slices to send: Send
Hi,
Thanks, Now i solved the NoclassFoundError problem. I followed this tutorial in the Hibernate site. But it i am stuck in the step 5. Can you please help me out.

1.So i havae to write the jboss-service.xml file to use hibernate3 with jboss 4.0.2 ?
2. How to create the hibernate.sar file using that ant task?

Can you please show me any tutorial which have the step by step guide to do the same.. thanks for spending your time...

Cheers,
Vinoth
+Pie Number of slices to send: Send
In the example, you are using the Hibernate as a service (the advantage is that you can modify its properties through the JMX console).

You can have more information here: http://acs.lbl.gov/~hoschek/javatree/share/jdbc/hibernate-2.1/doc/66.html
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2166 times.
Similar Threads
problems occuring while using hibernate in ejb
Connection Pooling in JBOSS 4.0
using Hibernate with Session Bean
How to integrate hibernate and EJB (stateless session bean)
Hibernate and Weblogic
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:30:47.