wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes How to use MBean in HibernateAnnotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to use MBean in HibernateAnnotation" Watch "How to use MBean in HibernateAnnotation" New topic
Author

How to use MBean in HibernateAnnotation

omkar prem
Greenhorn

Joined: Dec 17, 2006
Posts: 8
Hi,

i want to know how we can use MBean in hibernate Annotation.

please tell me any example or any tutorial.

Thank's & regard's
Omkar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

"Omkar",

Please check your private message for a message from JavaRanch.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

Originally posted by omkar:
i want to know how we can use MBean in hibernate Annotation.



Could you please tell us more about what you are trying to do? That will help us in pointing you to the right examples.
omkar prem
Greenhorn

Joined: Dec 17, 2006
Posts: 8
Hi Jai

i have to use mbean with hibernate annotation in my project,basicaly i have used mbean with hibernate core in the same project.which is to be changed on hibernate annotation and mbean. the project is based on struts.

1 i have created har file which contains jboss-service.xml and hibernate-ds.xml


above is my jboss-service.xml



above is my hibernateannotation-ds.xml

This is my POJO class


This is my servlet which Access the database through JNDI



the error which is comming is



i think that ihave to configure the pojo but how i could do because i am getting the sessionfectory object through



and i will configure it through



tell me any solution.

Thank's & Regard's

Omkar Rai
omkar prem
Greenhorn

Joined: Dec 17, 2006
Posts: 8
Any have any solution of this problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use MBean in HibernateAnnotation