-
1. Re: Jboss AS 7 - SubSystem use as service for Application
ctomc Jun 30, 2012 6:42 PM (in response to jayvijayraj)Hi,
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
--
tomaz
-
2. Re: Jboss AS 7 - SubSystem use as service for Application
jayvijayraj Jul 5, 2012 6:13 AM (in response to ctomc)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.
Regards,
Jay
-
3. Re: Jboss AS 7 - SubSystem use as service for Application
ctomc Jul 5, 2012 6:27 AM (in response to jayvijayraj)Hi,
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
--
tomaz