This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ejb technologies  RSS feed

 
vishnu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,i'm Vishnu

I have a doubt on ejb , It is possible to connect Data Base using SessionBeans & EntityBeans is must or not for connecting DataBase and what is the use of Home & Remote interfaces in Ejbs .What is the main diff b/w SessiosBeans & EntityBeans . pls tel me briefly ...

Thanks,
Vishnu.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vardhan_59",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For connecting with database you need to provide database connection configuration details in one of the xml deployment descriptors files. & Session beans *never* interact directly with DATABASE tabls. They interact to database tables through Entity beans. We can use Session beans as Facade to entity beans. Also Home interfaces declares liftcycle methods on EJB's & also some methods specific to entity & session beans. Remote interfaces mostly contains business method definitions which are implemented into bean definition class.

Hope this might help you.

Pras
For more info try googling
 
Sahana Hussain
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

It's wrong to say that SessionBean *never* interact with Database tables. SessionBean can interact with Database tables as easily as it manages the workflow of other beans.

Rather in many cases, it is efficient to use SessionBean rather than EntityBean to interact with Database. As an EntityBean represents only one row in a database. Lets not talk about this in detail, otherwise I'll divert from the Vihnu's question.

Thanks
Sahana
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!