in what ocasions is it WRONG to use "this" en EJBs?
I come up with this questions because of this situation:
I like to use a separete business interface to define the methods one EJB has. It's not a Remote Interface, nor local. It's just an interface. I then extend it to make the local and the remote interface. Then, at the bean, I extend one EntityBean or SessionBean class AND implement my business interface, so I can make sure all the methods I defined be present in my bean. No problem so far.
Now... in one of the methods, I have to use a finder of another bean to locate a number of beans related to this one. So.... as my bean implements the interface needed in the finder, i can call AnotherBeanHome.findBlah(this).... but I think this is not valid... is it? In case it is wrong, how can I correct it?
|