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.

Specifying the Navigation Mode for Receiving Messages<br />

See Also:<br />

Purpose<br />

Specify the navigation mode for receiving messages.<br />

Usage Notes<br />

Not applicable.<br />

Table 16–1 for a list of basic operations in the JMS shared<br />

<br />

operational interface<br />

"Interface - oracle.jms.AQjmsQueueReceiver" on page B-42<br />

"Interface - oracle.jms.AQjmsTopicSubscriber" on page B-44<br />

"Interface - oracle.jms.AQjmsTopicReceiver" on page B-44<br />

Syntax<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

See Java (JDBC): <strong>Oracle</strong>9i Supplied Java Packages Reference oracle.jms,<br />

AQjmsQueueReceiver.setNavigationMode,<br />

AQjmsTopicReceiver.setNavigationMode,<br />

AQjmsTopicSubscriber.setNavigationMode<br />

Examples<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment.<br />

TopicConnectionFactory tc_fact = null;<br />

TopicConnection t_conn = null;<br />

TopicSession t_sess = null;<br />

TopicSession jms_sess;<br />

Topic shipped_orders;<br />

int myport = 5521;<br />

/* create connection and session */<br />

tc_fact = AQjmsFactory.getTopicConnectionFactory("MYHOSTNAME",<br />

"MYSID", myport, "oci8");<br />

t_conn = tc_fact.createTopicConnection("jmstopic", "jmstopic");<br />

16-54 <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!