Download Oracle Streams Advanced Queuing User's Guide and Reference
Transcript
Propagation Schedules ((AQjmsDestination)topic).enablePropagationSchedule(t_sess, "dbs1"); Altering a Propagation Schedule public void alterPropagationSchedule(javax.jms.Session session, java.lang.String destination, java.lang.Double duration, java.lang.String next_time, java.lang.Double latency) throws JMSException This method alters a propagation schedule. It has the following parameters: Parameter Description session JMS session destination Database link of the remote database for which propagation is being scheduled. A null string means that propagation is scheduled for all subscribers in the database of the topic. duration Duration of propagation next_time Next time propagation starts latency Latency in seconds that can be tolerated. Latency is the difference between the time a message was enqueued and the time it was propagated. Example 12–30 Altering a Propagation Schedule TopicSession Topic t_sess; topic; ((AQjmsDestination)topic).alterPropagationSchedule( t_sess, null, 30, null, new Double(30)); Disabling a Propagation Schedule public void disablePropagationSchedule(javax.jms.Session session, java.lang.String destination) throws JMSException This method disables a propagation schedule. It has the following parameters: Parameter Description session JMS session destination Database link of the destination database. A null string means that propagation is to the local database. Example 12–31 Disabling a Propagation Schedule TopicSession Topic t_sess; topic; ((AQjmsDestination)topic).disablePropagationSchedule(t_sess, "dbs1"); Oracle JMS Basic Operations 12-19