I'm looking for a discussion and advice on using xdoclet to implement some
EJB things with hibernate, JBoss, etc., I'm coming at EJBs quite a newbie.
I've seen http://www.hibernate.org/82.html but it leaves a lot that I don't
yet understand.

I've created a Hibernate SAR, which installs just fine.  I can manually get
sessions, factories, all that good stuff on the same server.

I'd like to have DAOs, for example a personDAO, that does the usual person
CRUD stuff, lookup lists, whatever.  I've written it, and it works as
expected, it tests well anyway.

now to the point:  I would like this personDAO to be used/accessible by a an
EJB Session bean.  personDAO knows how to get a session and do its own
thing, returning serializable POJOs, these also test well so far.

Is it best to have personDAO be an EJB Session Bean?  Its home object knows
how to talk to the local hibernate service and get what it's being asked to
get?

or should I have some kind of EJB Session bean wrapper that knows how to
create a personDAO and execute methods on it?  Something else?

How much can I count on XDoclet to generate for me?  At this point it only
writes out the interfaces, it doesn't create anything that I can lookup and
execute methods on.  Do I have to write java source that will implement
these interfaces myself, including them in the same directory?

I'm missing something blatantly obvious here I'm sure, but that's what I'm
asking for.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to