1 Reply Latest reply on Dec 14, 2004 3:47 AM by aloubyansky

    Using Home & Select Methods instead of Finder Methods

    zak4899

      Hi,


      I'm using CMP Entity beans in JBoss 4.0. I would like to implement a "smart" finder method that has business logic before it returns references to a collection of bean instances. My bean has both local and remote interfaces implemented.
      I have implemented this in a Home Method that calls a select Method and returns the collection result of the Select method back to the caller. It doesn't seem to work right at all. The select method returns a collection of local interface-references, and when I return them as part of my home method in a remote interface, the client can't use them.


      Is this a possible pattern for 2.x CMP Entity beans? Could you point me to sample code?
      Is it possible to convert local interface references to beans to remote interface references?

      Thanks for your help,
      zak