You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Afranio Moraes <af...@yahoo.com.br> on 2008/04/22 16:54:28 UTC

Redeployment in embbeded OpenEJB

Is it possible to make redeployments in the embbeded version of OpenEJB?
   
  It is nice to deploy jars into <tomcat home>/apps, but to make a redeploy I have to stop tomcat and remove or update the jar. But this way I have to stop the container and therefore all the other ejb apps. In the standalone version there are commands for redeploy, but is there any other way to do that in embbeded OpenEJB?

       
---------------------------------
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! 

Re: Redeployment in embbeded OpenEJB

Posted by David Blevins <da...@visi.com>.
On Apr 22, 2008, at 7:54 AM, Afranio Moraes wrote:

> Is it possible to make redeployments in the embbeded version of  
> OpenEJB?
>
>  It is nice to deploy jars into <tomcat home>/apps, but to make a  
> redeploy I have to stop tomcat and remove or update the jar. But  
> this way I have to stop the container and therefore all the other  
> ejb apps. In the standalone version there are commands for redeploy,  
> but is there any other way to do that in embbeded OpenEJB?

Hi Afranio,

You should be able to drop the ear into the <tomcat home>/webapps/  
directory and get the hotdeploy/redeploy functionality you want.  It  
may seem strange, but their essentially the same except that "webapps"  
is watched/scanned repeatedly and "apps" is only looked at once at  
startup.  Both are capable of handling all the archive types (ears,  
wars, ejb-jars, etc.).  We do plan to make "apps" a hotdeploy/redeploy  
directory as well, we just didn't have the time to get that in for the  
final 3.0.

Also, you might be interested in the Collapsed EAR approach (http://openejb.apache.org/collapsed-ear.html 
), where you put your annotated EJBs right in your webapp under WEB- 
INF/lib or WEB-INF/classes.  You can optionally put a META-INF/ejb- 
jar.xml in your webapp too.  This little gem of ours is actually  
getting added to EJB 3.1, which is neat to see.  That way you can skip  
the ear business altogether.

-David