Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we use StateFul session bean to access Many tables

 
Sriram T
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In our project we want to use stateful session beans..........can we use only one stateful session bean to access many tables....
Please give me details ....if there is any site providing examples of this please give me
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. An EJB is just a place to put your business logic whether it is Session, Enity, or Message Driven. All of them can access multiple tables in a database or even multiple databases. I am not sure why you are asking for an example though. It is the same as accessing one table only you either do a join in your SQL or run multiple statements.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!