Mixing javaveans and ejb

J

jeromr

Hi all,

Is it possible to mix javabeans and ejb ?

I have to manipulate some simple objects into
my session beans, but i don't need this objects
to be persistent. Is it a bad design to replace
entities beans with javabeans in this case ?
 
J

Jon Martin Solaas

Hi all,

Is it possible to mix javabeans and ejb ?

Yes, it is.
I have to manipulate some simple objects into
my session beans, but i don't need this objects
to be persistent. Is it a bad design to replace
entities beans with javabeans in this case ?

Entity Beans and JavaBeans are two entirely different things. It is bad
design to use Entity Beans where JavaBeans could have sufficed. Entity
Beans (and the EJB container) provides lots of services to the
programmer, and if they're not needed, it's a waste of resources to use
them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top