This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "session bean" Watch "session bean" New topic
Author

session bean

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
hi,
Can we have data base related operations within session beans?
i know we can do this through entity beans..
thanks,
trupti
Manjunath Reddy
Ranch Hand

Joined: Jul 26, 2001
Posts: 60
YES, session beans can have database access/operations in it.
Practically most of the complex database operations are encapsulated in the session beans(especially stored procs).
regards,
mpr
Mahesh Kulkarni
Ranch Hand

Joined: Jul 05, 2001
Posts: 62
Hi Trupti,
Please go through the examples of J2EE / Weblogic installation.
You will find the eg of session bean code for accessing the database.
Thanx,
Mahesh.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

Actually, for most purposes, you can think of an entity bean as a special type of session bean whose persistency is specified (and, in the case of CMP assisted) by the implementation of the entity bean interface.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session bean
 
Similar Threads
EJB
overloading create methods
Session Bean ,Entity Bean persistence
Stateful session beans or Stateless combined with entity beans
Doubt regarding extended persistent context