Oracle Application Server InterConnect Adapter for AQ Installation and User's Guide 10g (9.0.4) Part Number B10416-01 |
|
This chapter provides answers to frequently asked questions about the Advanced Queuing adapter. This chapter discusses the following topics:
The following questions address the installation of the Advanced Queuing adapter.
View the oai.txt
file located in the appropriate timestamped subdirectory of the Advanced Queuing adapter log directory:
Platform | Directory |
---|---|
UNIX |
|
Windows |
|
If there are no exceptions, the Advanced Queuing adapter has started properly.
View the exceptions in the Advanced Queuing adapter log file (oailog.txt
). The exceptions should provide some idea about what went wrong. It is possible that the Advanced Queuing adapter is unable to connect to the repository. Make sure the repository is started properly. The Advanced Queuing adapter will connect to the Repository once it is started properly. You do not need to restart the Adapter.
The Advanced Queuing adapter caches the information from iStudio (the information which is stored in the Repository) locally for better performance in a production environment.
If you change something in iStudio and want to see it in the runtime environment, stop the Advanced Queuing adapter, delete the cache files, and restart the adapter.
Each adapter has a persistence directory located in the adapter's directory. Deleting this directory when adapter has been stopped should allow the adapter to obtain the new metadata from the repository when started.
The database the questions are referring to is the database on the application side from which the adapter will either put or get messages from Advanced Queuing.
If all the queues the Advanced Queuing adapter connects to on the application database side are single consumer queues, leave this blank. However, if any one of the queues is a multiconsumer queue, then specify a consumer name.
The application that writes to the Advanced Queuing adapter uses a consumer name to indicate to OracleAS InterConnect to pick up this message. The following two options help you to find out the consumer name to use:
Yes, edit the parameters in the following file:
Platform | Directory |
---|---|
UNIX |
|
Windows |
|
The following table lists the parameters and their corresponding questions in the installation:
The following questions address design time concepts for the Advanced Queuing adapter.
The installer overwrites previous installations of the Advanced Queuing adapter if you try to install it a second time in the same Oracle home. However, you can have multiple Oracle homes on a computer and have one Advanced Queuing adapter in each Oracle home. When you install the Advanced Queuing adapter a second time, choose a different Oracle home from the first Advanced Queuing adapter.
ANY
tags in DTDs imported into iStudio?
ANY
tags in an XML DTD allow unstructured data in XML to be used. OracleAS InterConnect, however, must know about the structure of that data (using a DTD) if that data is to be used in mappings.
There are two methods for OracleAS InterConnect to know about the structure:
ANY
tag with structured data. When modifying the DTD, only a copy of the DTD being importing into iStudio is modified, not the published version of the DTD. For example, if the USERAREA AN
Y tag is edited before importing the DTD into iStudio, only a copy is changed and the published OAG definition which other people who download the OAG DTDs would use is not changed.
This approach also supports using a PCDATA for an ANY
tag.
For example, consider the following customer.dtd
:
<!ELEMENT customer (name, phone, address)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT address ANY)>
This customer.dtd
can be changed to the following:
<!ELEMENT customer (name, phone, address)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT customer (name, phone, address)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT address (#PCDATA)> <!ELEMENT street (#PCDATA)> <!ELEMENT city (#PCDATA)> <!ELEMENT zip (#PCDATA)>
This is dependent on what the XML will conform to at runtime. If the XML will use the ANY tag in different ways at runtime, a union can be used. For example, if address
has street
, city
, and state
only for some instances and for other instances only has zip
, a standard DTD union mechanism for doing this can be used.
ANY
tag.
ANY
tag and points out the type that needs to be modified.
ANY
tag.
This method does not support using a PCDATA
tag for the ANY
element. The ANY element must have a sub-element in this case.
For example, consider the following customer.dtd
:
<!ELEMENT customer (name, phone, address)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)> <!ELEMENT address ANY)>
When this DTD is imported, iStudio warns that the address
tag is an ANY
tag and it corresponds to the address
ADT in iStudio.
The address_any.dtd
could look like the following:
<!ELEMENT address_any (street, city, zip)> <!ELEMENT street (#PCDATA)> <!ELEMENT city (#PCDATA)> <!ELEMENT zip ANY)>
Then import the address_any.dtd
by right-clicking on the address ADT in iStudio. This assumes the XML has an address_any
element under the address element as follows:
<address> <address_any> <street> <city> <zip> </address_any> </address>
If the address_any
element is not needed, then instead of editing the address ADT, edit customer ADT and change the type of address attribute from address
to address_any
, after importing address_any
elsewhere. The following is now true:
<address> <street> <city> <zip> </address>
|
![]() Copyright © 2002, 2003 Oracle Corporation. All Rights Reserved. |
|