jQuery in Action, 2nd edition*
The moose likes EJB and other Java EE Technologies and the fly likes ejb questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb questions" Watch "ejb questions" New topic
Author

ejb questions

PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
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)


To err is human,
To forgive is not company policy
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

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.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
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

Joined: Mar 24, 2008
Posts: 3817

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

Joined: Nov 12, 2009
Posts: 110
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

Joined: Mar 24, 2008
Posts: 3817

Yes, then you may not need EJBs at all.
PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
hai just now i came across content management systems what are they
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Without wanting to sound glib, they are systems to manage content.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ejb questions
 
Similar Threads
logging on IBM werbsphere
Jsp website
Please reply fast
how to make user polls/surveys in ejb/javascript
Need help configuring localhost to map to a domain name. Using RAD with websphere 6.1