Library Directory Application Libraries

Assembling and Deploying Oracle CEP Applications 24-11 Update the start script by adding the -Xbootclasspatha option to the java command that executes the wlevs_2.0.jar file. Set the -Xbootclasspatha option to the full pathname of the third-party JAR files you want to access system-wide. For example, if you want all deployed applications to be able to access a JAR file called e:\jars\myExcitingJAR.jar, update the java command in the start script as follows. The updated section is shown in bold in practice, the command should be on one line: JAVA_HOME\bin\java -Dwlevs.home=USER_INSTALL_DIR -Dbea.home=BEA_HOME -Xbootclasspatha:e:\jars\myExcitingJAR.jar -jar USER_INSTALL_DIR\bin\wlevs_2.0.jar -disablesecurity 1 2 3 4 5 6

24.2.3 Assembling Applications With Foreign Stages

When assembling applications that depend on foreign stages, be aware of classpath dependencies. Consider the application dependency graph that Figure 24–1 shows. Figure 24–1 Foreign Stage Dependency Graph In this example, Application A depends on Application B, Application B depends on Application C, and Application C depends on Application A. Application C declares and exports an event type class for Java Bean event type MarketEvent. Applications A and B import the MarketEvent class that Application C provides. Note the following: ■ When you redeploy a foreign stage, you must redeploy all foregin stages that depend on that application or foreign stage. For example, if you redeploy Application B, you must also redeploy Application A. ■ If there is a classpath dependency between one foreign stage and another, when you deploy the foreign stage that declares and exports the shared class, you must redeploy all foregin stages that import the shared class. For example, if you redeploy Application C, you must also redeploy Application A and B because Application A and B have a classpath dependency on Application C MarketEvent. For more information, see: ■ Section 1.1.1.9, Foreign Stages ■ Section 24.5, Deploying Oracle CEP Applications