views:

5

answers:

0

Can a server-side enterprise bean return a reference to another bean's remote interface that the client can use to call methods on that remote bean?

Example: I have a singleton auction house bean which has a vector of singleton auction item beans. I want to return to the client a vector of interfaces to the auction items so that the client can call (for example) items.elementAt(0).bid(10) to bid 10 dollars on item 0.

I'm able to serialize the actual objects and return them to the client, but I want the client to construct the remote interface proxy objects so that the methods are executed on the server, not on the client.