On 5/24/06, ant elder <[EMAIL PROTECTED]> wrote:
I've a J2SE client that needs to get a list of all the components defined in
the current module, is that possible? There used to be the getMetaData
method but thats been removed now.  If there is no easy way right now could
i add something?

The spec and programming model try to discourage that kind of
operation. The main reason for this is that it is transferring control
from SCA back into the application which means you lose many of the
benefits at the core of SCA itself.

For example, one of the most common reasons something wants a list of
components is so that it can perform routing decisions. This bypasses
the SCA wiring model used to assemble the different services together.
It means that you need to change the application code when the wiring
requirements change.

It was these kind of issues that led to the spec folks wanting to
reconsider the metadata story which is why getMetaData() went away.
Until that's worked out I wouldn't be in favour of adding it back it.

Having said that, there may be other ways to achieve the larger
purpose here. Could you provide some more information on what led to
this need and perhaps folks here could suggest an alternative?.

--
Jeremy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to