views:

14

answers:

1

Hello,

I have an interface with a method that should return a list of items, and each item should have certain methods associated with it. For example, I want to define a method listAllItems() that returns a bunch of "item" objects which have methods attached to them (so I can have the client process pick one of the items and say itemone.buy() for example, which would execute the corresponding method on the server).

Can I do this in CORBA? It seems I can't define "interface Item" and then in some other interface say "sequence".

I'll be compiling my idl to Java, if it makes a difference.

Thanks!

A: 

Sure you can.

You'll have to give more details on why you say it isn't working for you. But I regularly work with IDL that contains a sequence of interfaces.

Brian Neal