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.

antoniovl at 2007-7-7 0:31:07 > top of Java-index,Development Tools,Java Tools...
# 2
This is useful. ThanksBut about ObjectListDataProviders they should be placed in SessionBean? or something else ?Thanksmickgiu
mickgiu2 at 2007-7-7 0:31:07 > top of Java-index,Development Tools,Java Tools...
# 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.

antoniovl at 2007-7-7 0:31:07 > top of Java-index,Development Tools,Java Tools...
# 4
Thanks very much
mickgiu2 at 2007-7-7 0:31:07 > top of Java-index,Development Tools,Java Tools...
# 5
The Hibernate tutorial shows how to use an objectListDataProvider. http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hib ernate.htmlYou might also find these blog entries full of interesting information: http://blogs.sun.com/jfbrown/
jetsons at 2007-7-7 0:31:07 > top of Java-index,Development Tools,Java Tools...