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

hibernate with weblogic

 
Ravi Bansal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am first time trying to run the hibernate with weblogic... does anyone know what all configuration settings required to do in order to run the hibernate logic .
I have simple web application with one servlet running on my weblogic. I m trying to understand if i have to put the hibernate logic in the servlet class , what all configurations/classpath/JNDI settings needs to be done.
If anyone is aware and explain in step by step prcoess to do that?
Thanks in Advance.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you don't have to do anything specific for Hibernate to run in Weblogic. They are "unrelated" in a sense. Meaning, there isn't something that you have to do to Hibernate to make it run in different environments. The Hibernate code is the same everywhere.

Now some configurations outside of Hibernate might be slightly different. Like how Weblogic creates DataSources versus how JBoss creates DataSources. But those are Weblogic questions, not Hibernate questions.

If that is what you are referring to, then I can move this thread to the Weblogic forum.

Also, the only thing that ever goes into Servlet code is receiving the request, getting the data out of the request into your domain objects, then passing it off to another class to do other work. After that class is done, the Servlet should package up the data into the response, that is all. No logic should be in Servlet code because then you tightly couple that code to Servlet API/Technology.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic