Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Hooks for deploy / undeploy events for J2EE applications on OC4J 10g
Hi,
I am now using OC4J 10g (10.1.3) for most of my J2EE development. One feature I miss is a vehicle for running custom code when an application gets deployed/undeployed.
On BEA WebLogic Server this can be achieved with so called application lifecycle listener.
I was searching in Oracle documentation but couldn't find what I need. There are startup / shutdown classes in OC4J, but (at least according to documentation) they are called only when the server starts up or shuts down (even though the interface methods are named preDeploy, preUndeploy..).
That's not quite what I am looking for. I need to have my piece of application code executed every time I deploy / undeploy that application.
For deployment time there's a workaround - one can define a session bean with initially 1 cached instance in pool and hook the code in the bean's ejbCreate() method. However, this doesn't work for undeployment (the ejbRemove() method never gets called during undeployment on OC4J).
Any ideas how to achieve the desired effect?
Thanks in advance.
Dusan Received on Thu Mar 30 2006 - 04:25:11 CST
![]() |
![]() |