-
1. Re: jboss modules problematically using api
rhusar Dec 13, 2013 7:40 AM (in response to ravikatkar)Problematically or programmatically?
-
2. Re: jboss modules problematically using api
wdfink Dec 13, 2013 9:25 AM (in response to ravikatkar)What you mean by "load jboss modules using api"?
Does a dependency in MANIFEST or jboss-structure not fit your requirements?
-
3. Re: loading jboss modules using jboss api
ravikatkar Dec 13, 2013 9:32 AM (in response to ravikatkar)i want to load the new external jboss module in to jboss without restarting the jboss server ( something like Jboss CLI interface using api ).
-
4. Re: loading jboss modules using jboss api
synclpz Dec 13, 2013 10:28 AM (in response to ravikatkar)If you mean loading a new module without restarting JBoss, I'm also interested if it's possible. But, as far as I know java it is not possible to substitute class definition in runtime...
-
5. Re: loading jboss modules using jboss api
wdfink Dec 14, 2013 6:18 AM (in response to ravikatkar)What you can do is to add a new module without restart, i.e. add a new DB driver for mysql where you have an old version in place.
You need to add a slot (version number) to do that in parallel. But you need to change the deployment to use that version.
If you replace a jar in the module it is not possible to change the loaded classed on demand.
What you might do is to undeploy all applications, in that case the module is also removed. After that you can deploy it and the changed module is used.
But this is error prone in my oppinion and a restart will be better.
-
6. Re: loading jboss modules using jboss api
synclpz Dec 14, 2013 6:21 AM (in response to wdfink)Undeploying all apps == server restart from the point of availability, because jboss starts around 5 sec...
And you can't change subsystem's classes without restart.
-
7. Re: loading jboss modules using jboss api
wdfink Dec 14, 2013 1:00 PM (in response to synclpz)Depend whether you have applications which are not affected.
A possible approach is to deploy a module with a new slot, change the applications to depend on the new slot and deploy it.
-
8. Re: loading jboss modules using jboss api
synclpz Dec 17, 2013 5:28 AM (in response to wdfink)Like this method May be sometimes it could save some time.