Is it possible to use @ejb.value-object in a session bean? I mean to describe the pojo resulting.
----- Original Message ----- From: "Konstantin Priblouda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 1:32 AM Subject: Re: [Xdoclet-user] xdoclet-ejb-hibernate discussion > > > 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. > > You almost ready... > > > 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? > > Just implement javax.ejb.SessionBean, mark up your > dao methods being remote / local as you see fit, > place couple xdoclet tags on class level specifying > transactions and security roles - > and enjoy the ride. > > > 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? > > If you like.... > > > 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? > > No, xdoclet will generate concrete session bean class > for you, necessary interfaces ( home / remote / local > ), utility class capable to perform jndi lookup on > client side.... > Everything you need. > > > > I'm missing something blatantly obvious here I'm > > sure, but that's what I'm > > asking for. > > You almost reached the point where you like to be... > > > regards, > > ===== > ----[ Konstantin Pribluda ( ko5tik ) ]---------------- > Zu Verst�rkung meines Teams suche ich ab Sofort einen > Softwareentwickler[In] f�r die Festanstellung. > Arbeitsort: Mainz > Skills: Programieren, Kentnisse in OpenSource-Bereich > ----[ http://www.pribluda.de ]------------------------ > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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
