Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Hooks for deploy / undeploy events for J2EE applications on OC4J 10g

Hooks for deploy / undeploy events for J2EE applications on OC4J 10g

From: <medvidek72_at_freenet.de>
Date: 30 Mar 2006 02:25:11 -0800
Message-ID: <1143714311.173573.236210@v46g2000cwv.googlegroups.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US