Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

use MDB to perform dequeue on Oracle AQ  RSS feed

 
jerry king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know how to perform browse mode in MDB for Oralce AQ? I found that there is a sample code in oracle OTN (http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96587/qsample.htm#65833). However, i dont know where should i put those code segment in my MDB, as i am using the annotation to define Queue info as follow. Please kindly help me

@MessageDriven(
activationConfig = {
@ActivationConfigProperty(
propertyName="messageListenerInterface",
propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(
propertyName="connectionFactoryJndiName",
propertyValue="java:comp/resource/myProvider/QueueConnectionFactories/myQCF"),
@ActivationConfigProperty(
propertyName="destinationName",
propertyValue="java:comp/resource/myProvider/Queues/EPR_AQ_ADMIN.TEST_MYQUE"),
@ActivationConfigProperty(
propertyName="destinationType",
propertyValue="javax.jms.Queue")
//propertyValue="oracle.AQ.AQOracleQueue")
}
)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!