Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss hibernate configuration

 
yogesh totare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
what is the procedure to configure hibernate and jboss using Mbean


thanks

yogesh
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The procedure is documented here.
 
S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh

How are you? Hope you got the solution which paul has posted.


Bye

Take Care
 
yogesh totare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Paul,

i have done the hibernate jboss set up and it runs well but i don't get what are the changes made in order to use the mbean(second level cache).

1)in the jboss directory which file we have to change?
2)what is the code we have to write in class to access that mbean?

thanks in advance,

yogesh
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An MBean does not equal the second level cache. You use an MBean to expose Hibernate as a manageable service.

There is nothing that special about the classes you write to create the MBean
  • you need an interface, defining the methods of your MBean
  • an implementation of that interface
  • plus the jboss-service.xml file so JBoss can make it available as a service. You need to package this as a sar.


  • Once you MBean is deployed you can access it through the JMX-console. You would probably make the Hibernate SessionFactory available through JNDI.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic