![]() ![]() This method is used by various implementations of the AQ driver to register themselves with the driver manager (this method is not directly called by client programs) We recommend that multithreaded programs create a different AQSession in each thread (using the same or a different JDBC connection) and get new queue table and queue handles using the getQueueTable and getQueue methods in AQSession. You can pass these objects between threads, but the program must ensure that the methods on these AQ objects are not invoked concurrently. Therefore, methods on AQSession, AQQueueTable, AQQueue and other AQ objects should not be called concurrently from different threads. If the user is using the AQOracleDriver, then the object passed in must be a valid JDBC connectionĬurrently Java AQ objects are not thread safe. Table 7-1 getAQSession Parameters Parameter Syntax: public static AQSession getAQSession ( conn) throws AQException It returns a Vector of strings containing the names of the registered drivers. This method returns the list of drivers registered with the driver manager. Users can also acquire these rights through the AQ_USER_ROLE or the AQ_ADMINSTRATOR_ROLE.Users will also need the appropriate system and queue privileges for 8.1 style queue tables.Ĭurrently the Oracle8i AQDriver supports only RAW type payloads. Users must have the execute privilege on the DBMS_AQIN package in order to use the AQ Java interfaces. The Oracle8 i AQDriver expects a valid JDBC connection to be passed in as a parameter to create an AQSession. createAQSession() method is invoked, it calls the appropriate AQDriver (amongst the registered drivers) depending on the parameter passed to the createAQSession() call. The driver manager is used to create an AQSession which can be used to perform messaging tasks. Both OLite and Oracle8i will have an AQDriver which is registered with the AQDriverManager. The various implementations of the Java AQ API are managed via an AQDriverManager. The way to create a multi-consumer queue is described in the "AQSession". ![]() ![]() Set up for the test_aqjava class is described in "Setup for AQ Examples".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |