-
1. Re: How to implement "*EJB implements EJBObject"
homerjay Jul 19, 2002 7:32 AM (in response to jlbakker)Some. You don't have to implement *all* the various methods from the EJBObject, most of these methods are there for you to use within the bean. The method getEJBHome() for example will give you the "Home Object" for this bean, useful if you want to lookup other beans using one of the finder methods. However you do have to implement various ejbLoad(), ejbStore(), ejbCreate() and ejbPostCreate() methods IF you are using Bean Managed Persistance.
I suggest you find a tutorial, book or on the web (I belive http://java.sun.com has some) and work through a couple of some examples.
HJ -
2. Re: How to implement "*EJB implements EJBObject"
jlbakker Jul 19, 2002 10:00 AM (in response to jlbakker)All,
I worked with "http://www.jboss.org/online-manual/HTML/ch04s07.html"
This one tells me how code a custom finder in my bean. E.g. the example (at the bottom) goes "public class PopulationEJB implements EJBObject {". Unfortunately, EJBObject is an interface and the compiler tell me to provide the body for getEJBHome too. Should I be extending another object? Is the documentation in error?
Regards,
John-Luc -
3. Re: How to implement "*EJB implements EJBObject"
homerjay Jul 19, 2002 12:38 PM (in response to jlbakker)Hi J-L
I think the example is wrong. For a BMP implementation the Entity Bean must implement "EntityBean". Only the remote interface uses "EJBObject". JBoss will dynamically create the implemetation for the remote interface.
regards,
HJ