Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use MBean in HibernateAnnotation

 
omkar prem
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Omkar",

Please check your private message for a message from JavaRanch.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any have any solution of this problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic