hi brian,

no it does not. it was only when you said that the xpetstore did that that
i even thought of it

sincerely
morten wilken
>-- Original Message --
>From: "Brian McSweeney" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, "xdoclet" <[EMAIL PROTECTED]>,
>   <[EMAIL PROTECTED]>
>Subject: Re: [Xdoclet-user] session bean abstract class
>Date: Wed, 22 Jan 2003 12:37:48 -0000
>
>
>Again I don't know how to do this. I don't know xdoclet that well. Is the
>default
>behaviour of xdoclet that it generates all the lifecycle methods for all
>ejbs (both
>entity and session) for you?
>
>----- Original Message -----
>From: <[EMAIL PROTECTED]>
>To: "xdoclet" <[EMAIL PROTECTED]>;
><[EMAIL PROTECTED]>
>Sent: Wednesday, January 22, 2003 11:49 AM
>Subject: Re: [Xdoclet-user] session bean abstract class
>
>
>> hi brian (and anthony), thanks for your answers.
>> how does the CartSession ejb get generated?
>>
>> in my own projet it does not create anything that implements my abstract
>> xxsBean class, and i cannot see any difference in either the xdoclet
tags
>> or the <ejbdoclet> target
>> how do i specify that i want to generate an class that implements my
>xxxBean
>> (and so implements the lyfecycle methods)?
>>
>> sincerely
>> morten wilken
>>
>> >-- Original Message --
>> >From: "Brian McSweeney" <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>, "xdoclet" <[EMAIL PROTECTED]>,
>> >   <[EMAIL PROTECTED]>
>> >Subject: Re: [Xdoclet-user] session bean abstract class
>> >Date: Wed, 22 Jan 2003 10:47:39 -0000
>> >
>> >
>> >Hi Morten,
>> >I actually think this is a very good question. When you are using tools
>> like
>> >xdoclet that handles alot of generation for you, it's easy to forget
what
>> >you
>> >should actually be getting generated! I haven't used middlegen, but
>perhaps
>> >I can help with the session bean implementations in Xpetstore.
>> >
>> >In xpetstore, there are two session beans - the shopping cart and the
>big
>> >petstore session bean. If you look at the shopping cart, the create
>> >method is in the generated home interface and the associated ejbCreate
>> >method is in the generated CartSession ejb which extends
>> >xpetstore.services.cart.ejb.CartEJB and implements javax.ejb.SessionBean.
>> >
>> >So the methods are there and have been created by Xdoclet for you.
>> >
>> >However, a possible bug that I pointed out to the developer of Xpetstore
>> >is
>> >that this did not seem to be happening for Entity Beans. I have failed
>> to
>> >find
>> >any ejbCreates in any of the generated files. They still seem to be
>> >deploying
>> >in JBoss, and are being populated directly through raw sql. But I don't
>> >understand
>> >how.
>> >
>> >The problem I think is, we need to understand the default implementation
>> >of
>> >xdoclet - when does xdoclet generate the lifecycle methods for you?
>Always?
>> >I had thought so, allowing you to overwrite them if you want. But the
>entity
>> >beans in xpetstore lead me to think again. Can someone from the xdoclet
>> team
>> >shed some light? Hope this helps a bit anyway!
>> >thanks,
>> >Brian
>> >
>> >
>> >----- Original Message -----
>> >From: <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>
>> >Sent: Wednesday, January 22, 2003 9:10 AM
>> >Subject: [Xdoclet-user] session bean abstract class
>> >
>> >
>> >> sorry if this is a very dumb question, but when i look at samples
from
>> >xdoclet
>> >> (xpetstore for instance) i see sessionbeans implemented like this:
>> >>
>> >> public abstract SomeSession implements SessionBean
>> >> ...
>> >>
>> >> and without the sessionbean methods (ejbCreate() etc.
>> >>
>> >> but when i try to make one like that myself and deploy it to orion
i
>> get
>> >> errors from orion saying that my class has no ejbCreate method
>> >corresponding
>> >> to the remote create() method (which is true).
>> >>
>> >> I have also created some EntityBeans with MiddleGen, and it also
>creates
>> >> a SequenceSessionBean with the same characteristica. i think there
>would
>> >> be more posts about it if noone could get middlegen to work, so i
think
>> >> i have misunderstood something.
>> >>
>> >> am i missing something basic here? i cant seem to find anything about
>> this
>> >> anywhere, and when i look at examples of sessionbeans (in Mastering
>EJB
>> >> 2.0) the do implement all the lifecycle methods themselves.
>> >>
>> >> i could really use some pointers here
>> >>
>> >> sincerely
>> >> morten wilken
>> >>
>> >>
>> >>
>> >> -------------------------------------------------------
>> >> This SF.net email is sponsored by: Scholarships for Techies!
>> >> Can't afford IT training? All 2003 ictp students receive scholarships.
>> >> Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
>> >> www.ictp.com/training/sourceforge.asp
>> >> _______________________________________________
>> >> Xdoclet-user mailing list
>> >> [EMAIL PROTECTED]
>> >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>> >>
>> >
>> >
>> >
>> >
>> >-------------------------------------------------------
>> >This SF.net email is sponsored by: Scholarships for Techies!
>> >Can't afford IT training? All 2003 ictp students receive scholarships.
>> >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
>> >www.ictp.com/training/sourceforge.asp
>> >_______________________________________________
>> >Xdoclet-user mailing list
>> >[EMAIL PROTECTED]
>> >https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Scholarships for Techies!
>> Can't afford IT training? All 2003 ictp students receive scholarships.
>> Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
>> www.ictp.com/training/sourceforge.asp
>> _______________________________________________
>> Xdoclet-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>>
>
>




-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to