-
1. Re: How to restart seam application programmaticly ?
jump Oct 9, 2008 3:34 PM (in response to jump)I'll try to simplify my question. Does modification of application.xml while deployment causes application redeployment?
-
2. Re: How to restart seam application programmaticly ?
hermida.leandro.hermida.gmail.com Oct 9, 2008 3:39 PM (in response to jump)Hello, if I am not mistaken simply touching application.xml will cause redeployment.
-leandro
-
3. Re: How to restart seam application programmaticly ?
jump Oct 9, 2008 6:29 PM (in response to jump)does not work. at least while deployment
-
4. Re: How to restart seam application programmaticly ?
jump Oct 9, 2008 6:31 PM (in response to jump)Maybe I can reset seam contexts or something like that
-
5. Re: How to restart seam application programmaticly ?
dustismo Oct 9, 2008 6:40 PM (in response to jump)Seems like a dangerous thing to do (if you figure out how to get it working) considering the memory leak in jboss. (Or if you have some magic for fixing the mem leak, what is it?)
-Dustin
-
6. Re: How to restart seam application programmaticly ?
hermida.leandro.hermida.gmail.com Oct 9, 2008 6:44 PM (in response to jump)Hi,
It works for me perfectly I just tested it on one of my exploded ears in my application server. Run the touch command on the application.xml in the exploded ear directory in your JBoss deploy dir. For example:
touch $JBOSS_HOME/server/default/deploy/myapp-ear.ear/META-INF/application.xml
and you will see in your JBoss console that the entire ear gets redeployed.
-
7. Re: How to restart seam application programmaticly ?
hermida.leandro.hermida.gmail.com Oct 9, 2008 6:45 PM (in response to jump)He is right about that - you should look into why you are wanting to do this.
-Leandro
-
8. Re: How to restart seam application programmaticly ?
jump Oct 10, 2008 2:11 PM (in response to jump)I guess I need to clear this. First of all, after magic string
application started successfully
I can simply restart application by touching application.xml.Why I need to restart deployment? Because there is currently no EJB 3 hot deployment. I packed together business process definitions and jars with related seam component into single process archive. I made my own component to override seam core jbpm component. So I scan process archives for jars with Name-annotated classes. And if such classes found I copy corresponding jar file to ear lib folder and add respective module to application.xml.
After all modifications I need to restart application to force seam to rescan recently copied jars.
If there any scenario better then mine, You can freely offer them :)