[jboss-as7-dev] Web UI: Profile & host sections mutable?
David M. Lloyd
david.lloyd at redhat.com
Mon Feb 14 12:54:27 EST 2011
On 02/14/2011 11:23 AM, Darran Lofthouse wrote:
> On 02/14/2011 05:14 PM, David M. Lloyd wrote:
>> On 02/14/2011 11:03 AM, Heiko Braun wrote:
>>>
>>> On Feb 14, 2011, at 5:54 PM, David M. Lloyd wrote:
>>>
>>>> I think we should strive to modify our
>>>> subsystem/extension architecture such that there are no inter-subsystem
>>>> dependencies.
>>>
>>>
>>> Sorry, I had to read your email a second time. Do you really think
>>> this will be possible?
>>> A typical shared subsystem is the the TransactionManager. How can JCA
>>> be left out
>>> in a custom profile without including this one?
>>
>> The way we've solved this in other subsystems is by introducing optional
>> dependencies at the service level. For example if the transaction
>> subsystem is configured with an ORB present, we configure JTS, otherwise
>> we do not; if OSGi and Txn are both present, then OSGi exposes the Txn
>> service.
>
> I wonder how far this can be taken once the deployments come into this,
> those will introduce dependencies on other subsystems that are not
> necessarily needed for all possible deployments.
The only sensible action we can take here is to trigger a deployment
error in cases where something is missing a dependency, and ignore
descriptors for subsystems which aren't loaded (which also happens to be
the current behavior). If we add complex logic to detect missing
subsystems (even for the purpose of diagnostics), we will be duplicating
some of the logic from each subsystem anyway.
--
- DML
More information about the jboss-as7-dev
mailing list