Thanx!! It works!
Melanie
On 13 Aug 2003, at 23:03, Andrew Stevens wrote:
> On Tue, 2003-08-12 at 14:39, Melanie Roming wrote:
> > I have a question about stateful session beans.
> > I wrote a stateful session bean, and the only
> > differences between this bean and my stateless beans
> > are the Xdoclet tag type="Stateful" and the ejbCreate
> > Method, which has a parameter. Xdoclet creates among
> > other things the following Methods:
> >
> > public void ejbActivate()
> > {
> > }
> >
> > public void ejbPassivate()
> > {
> > }
> >
> > public void setSessionContext(javax.ejb.SessionContext ctx)
> > {
> > }
> >
> > public void unsetSessionContext()
> > {
> > }
> >
> > public void ejbRemove()
> > {
> > }
> >
> > But I want something to do in the ejbRemove Method, for
> > example I want to wrote the values of the instance variables
> > in the database before the bean is removed.
> > And I think the ejbActivate and ejbPassivate Method must not be empty?!
> > What did I wrong? Has anybody an example for me?
>
> If you want to put some code in those methods, just add the
> (non-abstract) method in your bean class. XDoclet should see that it's
> there and put a call to the super method in the generated code.
>
>
> Andrew.
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user