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,
"ejb spec" wrote:
The result-type-mapping is an optional element. It can only be present
when the query-method describes an ejbSelect query. The default value
for the result-type-mapping element is "Local".
Used in: entity
<!ELEMENT query (description?, query-method, result-type-mapping?, ejb-ql)>