Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How-to send a non-persistent (BUFFERED) message using JMS?
rollinpark wrote:
> DA Morgan wrote:
>> rollinpark wrote: >>> Hi again, >>> >>> I think i figure out the problem with the multi consumer. But now when >>> I try to run the program I get NullPointerException. Even when I run >>> the original code by bolek. Is it supposed to be error like this? Any >>> ideas >>> Thanks >>> >>> >>> rollinpark wrote: >>>> Hi >>>> >>>> Sorry to interrupt. I am trying to test whether I can enqueue using >>>> IPMessage type using the same code you all have been discussing. I just >>>> substituted the setAdtPayload part with ipmessage as below >>>> >>>> IPMessageOld ipmessageold = new IPMessageOld(s5, s6, s8, s7, s9, s10, >>>> s11, i, s14.toCharArray(), abyte0); >>>> ipmessageold.setPayload(CLOB.empty_lob()); >>>> ipmessageold.setAttachment(BLOB.empty_lob()); >>>> adt_msg.setAdtPayload(ipmessageold); >>>> >>>> The result is I got this error >>>> Exception: oracle.jms.AQjmsException: JMS-130: JMS queue cannot be >>>> multi-conumer enabled >>>> >>>> Any ideas how to solve this. Thanks a lot. >>>> >>>> bolek wrote: >>>>> Actually I'd be looking at aq*java :) but yes, I did study them. >>>>> >>>>> >>>>> DA Morgan wrote: >>>>>> bolek wrote: >>>>>>> I'm trying to send a BUFFERED (in Oracle terms) message using JMS. I >>>>>>> would expect the Oracle implementation of JMS to map the JMS >>>>>>> non-perisstent delivery mode in the Oracle BUFFERED delivery mode. >>>>>>> However, try as I might my JMS programs always send messages as >>>>>>> persistent. Why? Is there any way I can send a BUFFERED AQ message >>>>>>> using JMS? I can soo easily do that using PL/SQL I'm just trying to >>>>>>> accomplish the same thing from a different programmatic environment. >>>>>>> This is on Oracle 10.2.1 jars from 10.2.1 as well. >>>>>>> >>>>>> Have you looked at the following? >>>>>> >>>>>> $ORACLE_HOME/rdbms/demo/aq*.sql >>>>>> >>>>>> There are a number of files with good starting code for AQ and JMS. >>>>>> >>>>>> HTH >>>>>> -- >>>>>> Daniel A. Morgan >>>>>> University of Washington >>>>>> damorgan_at_x.washington.edu >>>>>> (replace x with u to respond) >>>>>> Puget Sound Oracle Users Group >>>>>> www.psoug.org >> Stop TOP POSTING! >> >> And no idea without seeing the code but it seems to me the error >> message says it all: Track it down. >> -- >> Daniel A. Morgan >> University of Washington >> damorgan_at_x.washington.edu >> (replace x with u to respond) >> Puget Sound Oracle Users Group >> www.psoug.org
It is. AQ uses a publish/subscribe paradigm. Any number of consumers can subscribe to a message.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Fri Jun 23 2006 - 11:32:17 CDT
![]() |
![]() |