Why do the JMS dbms_aqadm.add_subscriber and dbms_aqadm.remove_subscriber calls sometimes hang when there are concurrent enqueues or dequeues happening on the same queue to which these calls are issued?



Why do the JMS dbms_aqadm.add_subscriber and dbms_aqadm.remove_subscriber calls sometimes hang when ..

Answer / munnu

Add_subscriber and remove_subscriber are administrative operations on a queue. Though AQ does not prevent applications from issuing administrative and operational calls concurrently, they are executed serially. Both add_subscriber and remove_subscriber will block until pending transactions that have enqueued or dequeued messages commit and release the resources they hold. It is expected that adding and removing subscribers will not be a frequent event. It will mostly be part of the setup for the application. The behavior you observe will be acceptable in most cases. The solution is to try to isolate the calls to add_subscriber and remove_subscriber at the setup or cleanup phase when there are no other operations happening on the queue. That will make sure that they will not stay blocked waiting for operational calls to release resources.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JMS Interview Questions

Is it possible to create both queues and topics to single jms server? if yes then how it works?

0 Answers  


what is Java Message Service (JMS)?

1 Answers   Infosys,


Why do I get java.security.AccessControlException when using JMS MessageListeners from Java stored procedures inside Oracle8i JServer?

1 Answers  


What is a text message?

0 Answers  


What is the difference between jms and mq?

0 Answers  






What is jms server?

0 Answers  


Do text messages use data?

0 Answers  


How do I use a startup class to initialize and later reference jms objects?

0 Answers  


What are the main component in JMS?

1 Answers  


What is jms in java with example?

0 Answers  


Can two jms servers share the same persistent store?

0 Answers  


How do I start jms server?

0 Answers  


Categories