You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by anemdhana <dh...@gmail.com> on 2014/09/04 15:32:50 UTC

Auto reload in TomEE

Hi,
can you help me to achieve this ?
I have ear folder able to deploy by TomEE server. Actually we have ant file
that copies any changes made in eclipse workspace to this ear folder. when
web module has new changes in place, auto reloading not happening and I am
restarting server everytime. :(, I need to restart server even for a simple
jsp change.

Appreciate your help.

Thanks,
Dhana kumar



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Auto reload in TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
connect on the JVM through JMX then in openejb mbeans you have
operations where you can deploy/undeploy apps. Just filling your app
path and calling these methods will do the job I guess


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-05 15:14 GMT+02:00 anemdhana <dh...@gmail.com>:
> Sorry, didn't get you.To summarize,
>
> I have deployable folder, c:/dev/apps/myapp-ear
> which is defined in tomee.xml with <Deployments dir="c:/dev/apps/" />
> without autoDeploy attribute in this.
> If I have autoDeploy=true, then any changes made in this folder causing to
> rename the ear folder as myapp-ear.unpacked and all its content is erased.
>
> So, I have to prefer autoDeploy=false which will not delete anything, but I
> need to restart server every time I made changes in the
> folder.i.e.,c:/dev/apps/myapp-ear
>
> How can I achieve auto deploy/reload ?
>
> Let me know if I have missed anything.
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624p4671666.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Auto reload in TomEE

Posted by anemdhana <dh...@gmail.com>.
Sorry, didn't get you.To summarize,

I have deployable folder, c:/dev/apps/myapp-ear
which is defined in tomee.xml with <Deployments dir="c:/dev/apps/" />
without autoDeploy attribute in this.
If I have autoDeploy=true, then any changes made in this folder causing to
rename the ear folder as myapp-ear.unpacked and all its content is erased.

So, I have to prefer autoDeploy=false which will not delete anything, but I
need to restart server every time I made changes in the
folder.i.e.,c:/dev/apps/myapp-ear

How can I achieve auto deploy/reload ?

Let me know if I have missed anything.




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624p4671666.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Auto reload in TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
ah ok, didn't fully get it.

IIRC it should be doable through JMX as well if you kept the system
property openejb.system.apps=true (that's the default). You then have
access to a deployer in openejb MBeans.



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 19:32 GMT+02:00 anemdhana <dh...@gmail.com>:
> Partially helped me, when I have autoDeploy=true, it thinks that .ear is
> removed and hence making the ear folder as <folder_name>.unpacked having all
> its content deleted. I do not want to put new ear every time and let it
> unpacked, instead I am directly having new changes into the unpacked folder
> itself and allow tomee to redeploy/reload. possible ?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624p4671649.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Auto reload in TomEE

Posted by anemdhana <dh...@gmail.com>.
Partially helped me, when I have autoDeploy=true, it thinks that .ear is
removed and hence making the ear folder as <folder_name>.unpacked having all
its content deleted. I do not want to put new ear every time and let it
unpacked, instead I am directly having new changes into the unpacked folder
itself and allow tomee to redeploy/reload. possible ?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624p4671649.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Auto reload in TomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Does http://web.archiveorange.com/archive/v/mnKpLt1HzSwmt9GM83xL help?


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-04 15:32 GMT+02:00 anemdhana <dh...@gmail.com>:
> Hi,
> can you help me to achieve this ?
> I have ear folder able to deploy by TomEE server. Actually we have ant file
> that copies any changes made in eclipse workspace to this ear folder. when
> web module has new changes in place, auto reloading not happening and I am
> restarting server everytime. :(, I need to restart server even for a simple
> jsp change.
>
> Appreciate your help.
>
> Thanks,
> Dhana kumar
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Auto-reload-in-TomEE-tp4671624.html
> Sent from the TomEE Users mailing list archive at Nabble.com.