Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

EJB3 or straight to JPA in web app

  • 24-11-2008 05:59PM
    #1
    Closed Accounts Posts: 199 ✭✭


    Hi all

    I'm trying to decide what are the exact benefits of using EJB3 in a project I'm working on.

    Its a jsf project. I'm thinking of just using jpa to connect to the database, but there is a nagging feeling in the back of my head that I need to be using session beans (stateless) from ejb 3, i'm think because of scalability, but I'm not sure why exactly.

    Is it ok to use straight JPA (I'd like to use Tomcat), What are the benefits of using session beans from EJB?

    Cheers

    B2
    Tagged:


Comments

  • Moderators, Science, Health & Environment Moderators Posts: 10,093 Mod ✭✭✭✭marco_polo


    Beta2 wrote: »
    Hi all

    I'm trying to decide what are the exact benefits of using EJB3 in a project I'm working on.

    Its a jsf project. I'm thinking of just using jpa to connect to the database, but there is a nagging feeling in the back of my head that I need to be using session beans (stateless) from ejb 3, i'm think because of scalability, but I'm not sure why exactly.

    Is it ok to use straight JPA (I'd like to use Tomcat), What are the benefits of using session beans from EJB?

    Cheers

    B2
    Putting on an extreme programming hat for a minute I would say if you cannot really justify the more complicated solution go with the easier one at least at first.

    If it becomes clear later that you need to change tack, it should be relatively straightforward to integrate the JPA solution into an EJB3 solution.


  • Closed Accounts Posts: 199 ✭✭Beta2


    yea I tend to agree with you. I'm not using any of the remote interfaces or whatever they are called now, its been a while since I looked at j2ee.

    I think I'll go with straight JPA.

    Cheers


Advertisement