Skip Headers

# Configuring ValueHolder Indirection With EJB 3.0 on OC4J

Previous

Next

When using indirection with EJB 3.0 persistence on OC4J (see "Indirection and EJB"), if your application serializes any indirection-enabled enterprise bean (see "Indirection, Serialization, and Detachment"), then, to preserve untriggered indirection objects on deserialization, configure your client to use the same Java agent that OC4J uses, as follows:

1. Include the following JAR files (from `<``TOPLINK_HOME``>\jlib`) in your client classpath:

   - `toplink.jar`

   - `toplink-agent.jar`

   - `asm.jar`

   - `asm-util.jar`

   - `ejb3-toplink-session.xml` (and whatever project deployment XML it refers to)

2. Add the following argument to the Java command line you use to start your client:

       -javaagent:toplink-agent.jar