DataProvider vs ejb3
Hi,
we are trying to convert our erp from powerbuider(client server) to jee.(200 forms with a a lot of query and prints)
We are interested in which tecnology is better.
Java Studio creator handle database in a simple way with dataprovider putting rowset in sessionbean (if i have understood well). But is it stable ? Transactions? A lot of rowset in sessionbean don't kill system ?
Ejb are more difficult to work with but are stable ?
Please help us in this search.
Thanks
[516 byte] By [
mickgiu2] at [2007-11-26 9:37:33]

# 1
> Ejb are more difficult to work with but are stable ?
An ERP system sounds like complex business logic and complex data modeling. If this is true, may be more convenient to keep using Stateless Session Beans. You can code your Stateless SessionBeans to return Collections of Objects (Data Transport Objects) and then populate ObjectListDataProviders to be used in your tables.
Hope this helps.
Antonio.
# 3
> This is useful. Thanks
> But about ObjectListDataProviders they should be
> placed in SessionBean? or something else ?
>
Well, it's hard to answer without knlowledge of your application. They can be placen in a SessionBean, but maybe a good startpoint can be the related Creator tutorials, and then instead of using a CachedRowSetDataProvider use a ObjectListDataProvider or an ObjectArrayDataProvider. You can even drag and drop remote EJB methods into tables...
Best regards
Antonio.