When to use EJBs

1) Does any one know where can I find documents that describe when EJBs should be used in an application? If I use a J2EE server like WebLogic, should I always try to use EJBS an my applications?

2)Once I have decided to use EJBs in an application, should there be an entity bean corresponding to every table in the database?

thanks

[365 byte] By [shaheen_75] at [2007-9-26 4:25:19]
# 1
Check out the J2EE blueprints which you can download from the Sun site. For your 2nd question, you probably won't want to create an entity bean for every table in your database, only those that interface with the requirements of your application.
swatdba at 2007-6-29 17:33:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Hi

Well documentation can be found on sun's site and for EJB regarding the number based on table is not required.

I have a project which had around 30 Tables in it and we were using EJB's for it and had grouped EJB's based on table or functionality.

You could also make EJB's based on the tables logical grouping and can work it out.

Based on that you can define ur Interface.

Bye

pandeyvi at 2007-6-29 17:33:13 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...