Discussions

EJB design: EJB CMP or JDBC

  1. EJB CMP or JDBC (3 messages)

    I have restriction that I cannot use open source framework datamapping tools like Hibernate. It means that I can use only Entity beans or JDBC to access database. My reguirements document says: " Physically, the processes for the control, user, and data access tiers will be running on a single web/application server, a Sun 440, and the database will be running on a Sun 25k database server running Oracle 10g" Looks like that if make a decision to use Entity Beans, that I can use Entity beans with remote interface only. And this is not the best decision. Looks like that the best decision here to use JDBC to access database. Is my assumtion correct? Thank you, Natalis

    Threaded Messages (3)

  2. Re: EJB CMP or JDBC[ Go to top ]

    You can use JPA.
  3. Why remote i/f only ?[ Go to top ]

    If you use JPA, you should use some implementation like Hibernate or some other. Why can't the Entity beans be local, and your entity manager (and underlying ORM system) takes care of persistence operations with db server.
  4. Use Session beans[ Go to top ]

    U can use session beans as DAO wid jdbc, u will get CMT, but not CMP sudhir http://www.jyog.com