Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use hibernate in servlet with in eclipse

 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am using eclipse. i install plugin for both hibernate and servlet.
both are up and running separately . but i want to run both in single program or in single project.
is it possible ?? help me or please give some project example reference which is using both the things.

thanks in advance.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...both are up and running separately...

What you meant by this? In Eclipse plugins are to help you the development process like for example an Hibernate plugin may allow you to reverse engineer from a database, create config files easily etc... What you expect from these plugins, and what specific plugins you installed?
 
anchit pancholi
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijitha Kumara wrote:
...both are up and running separately...

What you meant by this? In Eclipse plugins are to help you the development process like for example an Hibernate plugin may allow you to reverse engineer from a database, create config files easily etc... What you expect from these plugins, and what specific plugins you installed?


i mean.. i used hibernate to make communicate with database( it's my frt program how is take data) and use servlet(this my secd program which show the content) for how to show database data in browser. so i want to use both operation in one program . by that i can fatch data and display in browser.

thanks for quick reply.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, so you have to have at least a WAR file created (with Servlet, POJOs etc... bundled) and deployed in to a web container (like Tomcat).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic