that is quite easily to achive
you need to create and register DeploymentUnitProcessor and inside your "deploy" method you can add additional module dependancies to your deployments.
for example take a look at how SarModuleDependencyProcessor is done. there are many others but this one is one of simpler ones
Thanks a lot for your answer.
The subsystem is started fine. But how to access the instances of the subsystem into the deployed .war file is not clear to me.
in other words, For me its still not clear how access the subsystem API inside the application (.war /.ear) file. Do i need to add any dependency wo my manifest file to access this subsystem API.
sure you can add subsystem dependancy to your deploying application, this way you will be able to access subsystem API from your application without manualy specifiying dependancies.
or you can do it manualy, whatever suits you better