09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Up Messaging Gateway<br />

b. Set CLASSPATH. (Windows NT users must set CLASSPATH using Windows<br />

NT path syntax.)<br />

CLASSPATH must contain at least the following. Replace the brackets with<br />

appropriate, spelled-out values (using $ORACLE_HOME does not work, for<br />

example).<br />

* Messaging Gateway classes:<br />

[ORACLE_HOME]/mgw/classes/mgw.jar<br />

* JDK internationalization classes: [ORACLE_<br />

HOME]/jdk/jre/lib/i18n.jar<br />

* JDK runtime classes: [ORACLE_HOME]/jdk/jre/lib/rt.jar<br />

* <strong>Oracle</strong> JDBC classes: [ORACLE_HOME]/jdbc/lib/classes12.zip<br />

* <strong>Oracle</strong> internationalization classes: [ORACLE_HOME]/jdbc/lib/nls_<br />

charset12.zip<br />

* [ORACLE_HOME]/sqlj/lib/translator.zip<br />

* [ORACLE_HOME]/sqlj/lib/runtime12.zip<br />

* Any additional classes needed for Messaging Gateway to access<br />

non-<strong>Oracle</strong> messaging systems, for example, MQSeries classes<br />

2. Set the log_directory and log_level parameters.<br />

Setting these parameters is not required. They influence the logging of<br />

Messaging Gateway. If they are not set, the default values are used. For log_<br />

directory, the default value is $ORACLE_HOME/mgw/log. For log_level,<br />

the default value is 0 for basic logging.<br />

3. Set the oracle_sid parameter.<br />

Set the oracle_sid parameter in mgw.ora to avoid providing the database<br />

connect string when configuring Messaging Gateway connection information.<br />

Refer to "Configuring Messaging Gateway Connection Information" on<br />

page 18-11.<br />

The mgw.ora File: Example<br />

#an example of mgw.ora file<br />

log_directory=/private/mgwlog<br />

log_level=2<br />

set CLASSPATH=<br />

set LD_LIBRARY_PATH=<br />

18-10 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!