Disclaimer: I know EJBs are generally disliked in this
forum (I dislike them myself). My question is more from
a tool capabilities point of view.

I just started (believe it or not) to look into what the
EJB architecture is all about, and I think I have now a
basic understanding of what Enterprise Beans are, their
types, how to program them, etc. Several questions popped
into my head while doing this study:

* Many people seem to agree on the inefficiency of entity
  beans, specially for massive operations. It looks as if
  CMP beans (i.e., those where the OR mapping is automatically
  handled) are specially non-performant. Now, say you decide
  to only use Entity beans when necessary, and then, only
  BMP beans (where you manually write the OR mapping). Could
  torque generated classes be used for this part of a BMP bean?
  Even more, could Torque generate the whole Bean class?

* There are several interfaces and/or classes (at least 3) to
  be more or less hand-written when creating an EJB. Some of
  the methods for these classes could be automatically generated
  from a higher level bean description (I guess this is what
  some of those fancy IDEs do). Has anybody thought about using
  Torque (Texen?) to generate these classes? The nice thing
  about such a tool is that you might be able to define a more
  sophisticated set of classes implementing an EJB (say, because
  you create a factory, and use a base class for BMP and CMP,
  or whatever); the tool could adjust to your needs simply
  by providing it with different Velocity templates, right?

Just thinking aloud,


-- 
Gonzalo A. Diethelm
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to