|
Create a custom template file which
generates the subclassed blablaEJB
class. Shouldn’t be hard. I assume DoSomething is an @ejb:interface-method,
so create a very simple template which loops over all method, checks ifIsInterfaceMethod and generates the method with the super
call in the body. Take a look at xdoclet’s .j
files, docs/architecture.html and also xdoclet-user archives where you’ll
find lots of templates/ideas. Ara. -----Original Message----- I would
like to use this pattern to turn pojo's into session beans: Start
with: // not
abstract And have
xdoclet gen something like this: public
class WorkerEJB extends WorkerBean implements implements SessionBean
...along
with the remote interface and the home stuff, etc. Can I do
this now with xdoclet? If not, how hard would it be for me to change
it? Could I do this with just a custom merge file, or by subclassing some
of the tasks? I like to
use this pattern because it allows me to unit test the business logic within
the regular beans outside the app server context. Any criticism of this
way of writing EJBs would also be very welcome. Thanks,
Jim
Hughes |
Title: Session bean pattern
- [Xdoclet-user] Session bean pattern James Hughes
- RE: [Xdoclet-user] Session bean pattern Ara Abrahamian
- RE: [Xdoclet-user] Session bean pattern Vincent Harcq
- RE: [Xdoclet-user] Session bean pattern James Hughes
- RE: [Xdoclet-user] Session bean pattern Andrew Stevens
