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

Advantage of registering hibernate session as JNDI or JMX Service

 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

can some one kindly give me link or information about advantages of registering hibernate as JNDI or JMX Service instead of accessing it using utility class ?

-Praful
[ May 31, 2006: Message edited by: Praful Thakare ]
 
Sebastian Hennebrueder
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
what exactly do you want to get from the JNDI: The transaction in JTA environment, the Hibernate Session, do you want to use Hibernate as EJB 3 (injection) or the JBoss Har archive?

Best Regards

Sebastian
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sebastian,

Thanks for your reply, I currently have and util class that creates hibernate session object and makes it available to my application using get Session method, I wanted to know is there any kind of benefit if I register this session object as jmx service?

Cheers
-Praful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic