This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

ejb questions

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
where do we use ejb.......

lets say that i am creating a website with servlets and jsp....

the website posting company has tomcat only........(then will i be able to use ejb or in which case will i use ejb)
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

PrasannaKumar Sathiyanantham wrote:where do we use ejb.......


EJB composed of different types (i.e: Session Beans,Message Driven Beans,JPA in EJB3) where those have different purposes. Session & MDBs are mainly for the business tier of the application. And JPA is for the persistence (prior to EJB3, Entity Beans were used for thxis).


lets say that i am creating a website with servlets and jsp....
the website posting company has tomcat only........(then will i be able to use ejb or in which case will i use ejb)


Tomcat is a web container not a fully JEE compliant server, so It does not support EJB. There are other application servers which support them like Jboss, Websphere etc..
Also note that Servlet/JSP are for the web tier.
 
PrasannaKumar Sathiyanantham
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you......

then if i want to create a website then there is no need for me to use ejb right..... i can do everything with jsp and servlets........

am i correct in this
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

PrasannaKumar Sathiyanantham wrote:then if i want to create a website then there is no need for me to use ejb right..... i can do everything with jsp and servlets........


Not everything. Actually that depends on the type of the application/website. You might use simple JavaBeans for the business tier funtionality along with Servlet/JSP for the web tier. But for more complex functionality you may need EJB as they provide all those services like Transactions, Concurrency etc.. Their (Session Beans,MDB) life cycle is managed by the container.
 
PrasannaKumar Sathiyanantham
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no actually i am just creating a tutorial site and want to add forums and username,passwords and like those things........ can i do that in jsp and servlets alone without ejb.............

i am not going to ask my users to pay money to enter my site

if at all they come to my site........

so can i do that in servlets alone
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, then you may not need EJBs at all.
 
PrasannaKumar Sathiyanantham
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai just now i came across content management systems what are they
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without wanting to sound glib, they are systems to manage content.
 
PrasannaKumar Sathiyanantham
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A great answer but it leaves me

i went to the site of drupal and joomla and it states that you can create a site using them.......(with php)

does it mean that i dont have to know anything about xhtml,css,php,mysql and others but use them to create a site
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic